Developer tool

Regex Tester

Test JavaScript regular expressions, flags, captures, and replacements live.

Runs in your browser
Regex Tester2 matches
#1Normal Toolsindex 0$1: Normal$2: Tools
#2normal toolsindex 25$1: normal$2: tools

How to use this regex tester

  1. Enter the regular expression without slash delimiters, choose the flags, then paste test text and an optional replacement pattern.
  2. Review the test result and any values that look unusual. Check syntax, escaping, and edge cases against the source before using the result in a live project.
  3. Copy or download the result if you need a record of the check.

About this regex tester

Regex Tester helps you test JavaScript regular expressions, flags, captures, and replacements live. The input and result appear together for easy comparison.

You can also use it to repeat the check after changing the input.

Example

Use (normal)\s+(tools) with the gi flags to find both words regardless of case and inspect each capture group.

Common uses

  • test JavaScript regular expressions, flags, captures, and replacements live
  • repeat the check after changing the input
  • save a result for later reference