convert a glob string to a regex object.

TODO: purge the info below: in this implementation, only the wildcards "*", "**", and the optional "?" is given meaning. all else, including parenthesis, brackets, dots, and backslash, are escaped when being converted into a regex.

TODO: test it TODO: also implement a isGlobPattern function TODO: make it so that the user can configure which features to turn on or off