T-11 · Developer tools
Regex Tester
Test JavaScript regular expressions against sample text with live matches, capture groups and flags. Protected against runaway patterns.
- Runs in your browser
- Nothing uploaded
- No account
About this instrument
What it does
Enter a pattern, choose flags and paste test text to see every match with its position and capture groups. Patterns run in a background worker with a time limit, so a catastrophic pattern cannot freeze the page.
How to use it
- Type your regular expression.
- Toggle flags (i, m, s, u).
- Review matches and groups below the text.
FAQ
Common questions.
01Why was my pattern stopped?
It probably backtracks catastrophically, for example nested quantifiers like (a+)+. Make the pattern more specific.
02Can I use named groups?
Yes: (?<name>…) works and is shown in the results.
Related instruments
- T-07URL Encode / DecodePercent-encode or decode URLs and query strings. Choose between encoding a component or a whole URL.Local
- T-04Text CompareCompare two texts line by line and see what was added or removed. Runs locally in your browser, so nothing is uploaded.Local
- T-05JSON FormatterFormat, validate and minify JSON with clear error messages that point to the line and column. Runs entirely in your browser.Local