LOCAL TOOL / WEB

Glob to Regex

Supports *, **, ?, character classes, and comma-separated brace alternatives such as *.{js,ts}.

Paste, type, or drag & drop a text file 17 chars · 1 lines · 17 B
Options
Runs locally in this browserPreview updates after 80 ms · No content, filenames, or secrets are sent or saved.
About this utility

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}.

  1. Paste, type, or drag and drop a supported text file into the input area.
  2. Choose the options that match your intended result.
  3. 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}