Free Regex Tester Online
Test regular expressions with live match highlighting in your browser. Supports named groups and all JS regex flags.
How to use
- 1
Enter your regex pattern
Type your regular expression pattern and optionally set flags (g, i, m, s).
- 2
Paste your test string
Enter the text you want to match against.
- 3
See matches highlighted live
Matches are highlighted in real-time as you type.
Why use this tool?
- Live highlighting updates as you type - no button needed
- Runs in your browser, so your test data stays private
- Shows match details including index, captured groups, and named groups
- Limits output to 1000 matches to prevent browser freeze on pathological patterns
Frequently asked questions
- What regex flavour does this support?
- JavaScript regex (ECMAScript). This covers the vast majority of common regex patterns and is compatible with JS, TypeScript, and many other languages.
- What flags are supported?
- g (global), i (case-insensitive), m (multiline), s (dotAll), u (unicode), and d (indices).
- Why does it stop at 1000 matches?
- Catastrophic backtracking with certain patterns against large inputs can freeze a browser tab. The 1000-match limit prevents this.
- Does it support named capture groups?
- Yes. Named groups (?<name>...) are shown in the match details.
Related tools
Format, validate, and minify JSON instantly in your browser. Your data never leaves your device.
Encode and decode URL components instantly in your browser. Percent-encodes special characters. No data sent to servers.
Compare two blocks of text and see added, removed, and unchanged lines highlighted. Runs in your browser - no upload.
Popular right now
Format, validate, and minify JSON instantly in your browser. Your data never leaves your device.
Decode JWT tokens and inspect header and payload instantly in your browser. Your tokens never leave your device.
Count words, characters, sentences, and estimate reading time instantly in your browser. No sign-up required.



