Skip to main content
Regex tester online tool highlighting regular expression matches and capture groups in sample text

Regex Tester

Test regular expressions against your text with live matching.

Pattern & flags

Flags

Matches (0)

Matches appear here

Test string

How to Test a Regular Expression in 4 Steps

  1. 1

    Enter the pattern.

    Use the syntax expected by the target engine.

  2. 2

    Choose the flags.

    Enable only the matching options required by the application.

  3. 3

    Add representative text.

    Include valid, invalid, boundary, and multiline examples.

  4. 4

    Review and retest.

    Verify the final pattern in the actual programming environment.