Enter a pattern and flags
Type the raw regex pattern and choose flags like g (global) or i (ignore case).
Developer Tools
Test JavaScript regular expressions against sample text in your browser.
Test a JavaScript regular expression against sample text — see matches, capture groups, and match positions — entirely in your browser, using your browser's native RegExp engine. Need to actually replace matched text? Try Find & Replace.
How it works
Type the raw regex pattern and choose flags like g (global) or i (ignore case).
Paste or type the text you want to check the pattern against.
See match count, matched text, positions, and capture groups.
Use cases
Check why a regular expression isn't matching the text you expect.
Test a pattern for emails, IDs, or codes against a handful of real examples.
Check capture groups pull out the right pieces of matched text.
FAQ
No. Matching runs entirely in your browser using the native JavaScript RegExp engine.
No. Enter just the raw pattern, like \bhello\b, and choose flags separately using the checkboxes.
The g (global) flag is off. Turn it on to find every match instead of just the first.
It uses your browser's native JavaScript RegExp engine, so it follows JavaScript regex syntax and semantics rather than PCRE, Python, or other flavors.
You'll see a clear error message instead of a crash. Fix the pattern and test again.
Related Tools