Converts a glob-style pattern (using * and ? wildcards) to a regex pattern string.
*
?
Extension property on String. Dots are escaped, * becomes .*, and ? becomes ..
.*
.