Regex Tester - Online Regular Expression Testing Tool

Free online regex tester with live pattern matching, group extraction, and syntax highlighting. Test and debug regular expressions with instant feedback and match highlighting.

/ /
Examples:
Test String 0 matches
Match Preview
Matches will be highlighted here...
Match Details
Enter a pattern and test string to see matches...

About Regex Tester

Test and debug your regular expressions with live match highlighting and detailed group information. Perfect for testing patterns before using them in your code.

Features:

  • Live pattern matching as you type
  • Visual match highlighting in test string
  • Detailed match information with groups
  • Support for all JavaScript regex flags
  • Quick example patterns
  • Copy pattern or matches to clipboard

Common Regex Patterns:

PatternDescription
\dAny digit (0-9)
\wAny word character (a-z, A-Z, 0-9, _)
\sAny whitespace character
.Any character except newline
^Start of string/line
$End of string/line
*0 or more repetitions
+1 or more repetitions
?0 or 1 repetition
{n}Exactly n repetitions