Regex Tester

Test regular expressions and see matches highlighted instantly.

Test regular expressions and see matches highlighted instantly.

No matches found.

How to test regex patterns

Enter your regex pattern and flags, then paste or type your test text. Click Run Test to see matches highlighted and listed below.

Common regex flags

  • gglobal (find all matches)
  • icase insensitive
  • mmultiline

Examples of regex patterns

Pattern: \\d+
Matches any sequence of digits

Pattern: ^[A-Za-z]+$
Matches a line with only letters

Pattern: (cat|dog)
Matches either "cat" or "dog"

Why developers use regex testers

Regex testers help developers quickly build, debug, and validate regular expressions for use in code, data validation, and text processing.