How to use Glob to Regex
Translate a common file glob into an anchored JavaScript regular expression.
What to provide
Supports *, **, ?, character classes, and comma-separated brace alternatives such as *.{js,ts}.
- Paste, type, or drag and drop a supported text file into the input area.
- Choose the options that match your intended result.
- Select “Run tool” or press Ctrl/Command + Enter, then copy, download, or move the result back into the first input for another pass.
What the result means
An inert anchored JavaScript regex source and its flags.
Privacy and safety
This utility is loaded as browser code and processes your input only in this tab. OmniCastConverter has no upload endpoint and never stores your content, filenames, tokens, or secrets. Generated markup and code are shown as inert text and are never executed.
Limitations
- Shell-specific extglobs, brace ranges, escaping rules, and dotfile policies vary and are not inferred.
Try the included example
Select “Load example” at any time to restore this tested sample.
src/**/*.{ts,tsx}