globToRegex

Converts a glob pattern to a Regex.

  • ** matches any sequence of characters including .

  • * matches any sequence of non-. characters

  • ? matches a single non-. character

  • All other characters are matched literally.