Glob to Regex

Turn * and ? globs into a regex; optional anchors and flags.

Builds a regex with * as .* and ? as one character. Anchors with ^ and $ by default. Optional flags (gimsuy). Unlike Regex Escape this expands wildcards instead of escaping them. Unlike Regex Tester this does not run a match. Empty glob fails. Character classes in the glob are treated as literals.

Regex: ^a.*\.txt$

Regex flags:

Length: 10

Anchored (1 = yes): 1