🔍 Regex Tester Tool

Online regular expression testing and validation tool with real-time matching and syntax highlighting

Regular Expression Pattern

//
Flags:

Common Patterns

Test String

Highlighted Text

Enter pattern and test string to see highlighted matches

Match Details (0 matches)

Enter a pattern and test string to start testing

Usage Tips

Metacharacters

  • . - Matches any character except newline
  • ^ - Matches start of string
  • $ - Matches end of string
  • * - Matches 0 or more of the preceding element
  • + - Matches 1 or more of the preceding element
  • ? - Matches 0 or 1 of the preceding element

Character Classes

  • \d - Matches any digit (0-9)
  • \w - Matches any word character (a-z, A-Z, 0-9, _)
  • \s - Matches any whitespace character
  • [abc] - Matches any character in the set
  • [^abc] - Matches any character not in the set