Guide · Developer Tools / Developer Tools
About Regex Tester
Test JavaScript regular expressions against sample text with g/i/m/s/u flags, match indices, capture groups, and built-in ReDoS safety screening.
When to use this tool
Use when crafting form validators, log parsers, or search patterns before pasting regexes into production code.
How to use Regex Tester
- Enter a pattern (up to 400 characters) and toggle flags (g, i, m, s, u).
- Paste multi-line test text to inspect highlighted matches and capture groups.
- Refine the expression until every expected match aligns.
Supported inputs, options, and outputs
- Flags: Global (g), Ignore Case (i), Multiline (m), DotAll (s), Unicode (u).
- Safety guard: Rejects nested quantifier patterns (such as (a+)+) before compilation to prevent browser hangs.
Accuracy notes and limitations
- Uses JavaScript's RegExp engine, which differs slightly from PCRE, Python, or Go RE2 syntax.
Privacy and browser processing
Inputs and calculations run inside your browser tab without uploading documents or financial figures to IJM servers. Hosted deployments load cookie-free page-view analytics and Google Fonts.
Read the full IJM Privacy Policy or browse all Developer Tools.