Regex Tester

Test and debug regular expressions with real-time feedback and detailed analysis

Pattern Length: 0
Test String Length: 0
Matches Found: 0
Status: Ready
Sample Patterns
Regex Quick Tips
Regex Format

Enter patterns without delimiters (e.g., ^[a-z]+$ not /^[a-z]+$/)

Common Metacharacters
  • . - Any character (except newline)
  • \w - Word character [a-zA-Z0-9_]
  • \d - Digit [0-9]
  • \s - Whitespace character
  • ^ - Start of string/line
  • $ - End of string/line
Quantifiers
  • * - 0 or more
  • + - 1 or more
  • ? - 0 or 1
  • {n} - Exactly n times
  • {n,} - n or more times
  • {n,m} - Between n and m times