Regex Tester
Test regular expressions with live match highlighting, capture groups, and replace — all in your browser.
100% in your browser — files never leave your device
/ /g
Examples:
Replace
Frequently asked questions
Is my test data sent anywhere?
No. All matching runs entirely in your browser using the native JavaScript RegExp engine. Nothing leaves your device.
Which flags are supported?
g (global), i (case-insensitive), m (multiline), s (dotAll — dot matches newline), u (unicode), and y (sticky). Combine them freely; the tool rebuilds the RegExp on every keystroke.
How do named capture groups work?
Use (?<name>...) syntax. Named groups appear in the match list alongside numbered captures. In the replacement input you can reference them as ${name}.