Skip to content

Regex Tester

Test a regular expression against a string and see all matches with their positions. Free regex tester, no sign-up.

How it works

  1. Enter a regular expression
  2. Paste test text
  3. Matches are highlighted live

About “Regex Tester”

Test a regular expression against a sample text and see all matches with position and groups. The expression is processed with PCRE, as in PHP. The flags i, m, s and u are supported.

That way you check patterns before using them in code, forms or searches.

Frequently asked questions

Do patterns behave the same everywhere?

Not quite. PCRE and JavaScript differ in details such as lookbehinds and named groups.

What does the i flag do?

It ignores upper and lower case.