Regex Tester

Test regular expressions with live match highlighting. Results update as you type.

Pattern
/ /
Flags
Test String
Match Highlights
Matches will be highlighted here...
Matches Found
No matches yet

How to Use the Regex Tester

Enter your regular expression pattern in the pattern field and your test string in the text area. Matches are highlighted in real time as you type.

Common patterns:

  • \d+ — match one or more digits
  • [a-z]+ — match lowercase letters
  • ^\d{4}-\d{2}-\d{2}$ — match a date like 2024-01-15
  • ^[^\s@]+@[^\s@]+\.[^\s@]+$ — match an email address