Regex Tester

Regular Expression
/
/
g

Expression Flags

Test String
Match Results

Enter a pattern and test string.

How to use
  1. 1.

    Enter your regular expression in the pattern field

  2. 2.

    Paste test text below — all matches are highlighted in real time

  3. 3.

    Use the flags (g, i, m, s, u, y) to adjust matching behaviour

Common uses
  • Testing regex patterns for form validation (email, phone, postal code)

  • Extracting structured data from log files or raw text

  • Building search-and-replace patterns for scripts or editors