Developer
Regex Tester
Write a pattern and see matches highlighted as a list, with capture groups, positions and an optional replace preview.
Good to know
Frequently asked questions
Which regex flavour is used?
JavaScript's own RegExp engine, so patterns behave exactly as they will in browser or Node code.
Is my test data uploaded?
No. Matching happens entirely on your device.
How do I use capture groups in the replacement?
Use $1, $2 and so on, matching the order of the groups in your pattern.
Why does it show fewer matches than expected?
The list stops at 500 matches to keep the page fast. Narrow the test string to see the rest.