Regex Tester

Test Your Regular Expression

/ /

Enter the pattern without leading/trailing slashes. Use standard JavaScript regex syntax.

Matches will be highlighted in the text above or listed here.

Match Count: 0

How to Use

  1. Enter your regular expression pattern in the "Regular Expression" field (without the surrounding `/` characters).
  2. Optionally, enter any flags (like `g` for global, `i` for case-insensitive) in the small flags field.
  3. Paste or type the text you want to test against in the "Test String" area.
  4. Matches will be highlighted in the test string area automatically as you type the regex or test string.
  5. The total match count is displayed below the output area.

Tip: Use the global flag (`g`) to find all matches, not just the first one.

Why Use a Regex Tester?