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

  1. Enter a JavaScript regular expression without the surrounding slashes.
  2. Choose flags, add test text and an optional replacement, then test it.
  3. 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.
//