How to use
This tool uses the browser's JavaScript RegExp engine (ECMAScript). For "Match", you can optionally force global iteration to list all matches.
- Enter a Pattern (without surrounding slashes).
- Set Flags (like
gim) and choose a Mode. - Paste your text into Text.
- Click Run to see matches, groups, replace output, or split parts.
FAQ
What regex flavor does this tool use?
It uses the browser's JavaScript RegExp (ECMAScript) engine, so behavior matches JavaScript regex rules.
Does this regex tool upload my text or pattern?
No. Everything runs locally in your browser; there are no network calls from the tool.
How do I enable case-insensitive or multiline matching?
Add flags like i (case-insensitive) and m (multiline) in the Flags field.
Why do I only see one match?
Without g, JavaScript regex finds a single match; enable g or keep “iterate all matches” checked in Match mode.
How do I view capture groups and named groups?
Use parentheses (...) for groups and (?<name>...) for named groups; the tool prints group values under each match.
My pattern has backslashes—what should I type?
Type the regex as you would in JavaScript source between slashes, but without the slashes (for example \d+).
Can I count replacements?
Yes. Replace mode shows the number of matched occurrences and the final replaced text.