Back to Data tools
Regex Tester
Test JavaScript regular expressions, capture groups, and replacements. Slow expressions are stopped automatically.
How to Use3 Quick Steps & Important Notes
How to Use
- Enter a JavaScript regular expression without the surrounding slashes.
- Choose flags, add test text and an optional replacement, then test it.
- Inspect every match, its position, capture groups, and the replacement preview.
What to Expect
- Expressions that run for too long are stopped to keep the page responsive.
- Results follow your browser's JavaScript regular-expression behaviour.
//