Regex tester
Type a regular expression and see every match highlighted as you type, with its groups. Try replacements too. Your text stays in this tab.
Runs in your browser. Your files are never uploaded or stored.
Matches in the text
Match list
Replace
Use $1, $2… for groups and $& for the whole match.
Something not working, or missing an option?
How to use Regex tester
- Type your pattern and choose flags.
- Paste the text to search in. Matches are highlighted as you type.
- Open Replace to try a replacement.
Questions
Which regex flavour is this?
JavaScript’s, the one browsers and Node.js use. Most patterns work the same in Python, Java and PHP.
Are my files uploaded?
No. The tool runs inside your browser, and the page is blocked from sending data anywhere. You can check by turning off your internet connection: it keeps working.
Open-source parts
This tool uses only features built into your browser: no third-party code.