Advertisement helps us keep this service free

Regular Expression Tester

Test, validate, and debug regular expressions with real-time matching

No matches found
Hello World 123

Common Patterns

Quick Regex Reference

Character Classes

  • . - Any character
  • \d - Digit (0-9)
  • \w - Word character
  • \s - Whitespace
  • [abc] - Any of a, b, c
  • [^abc] - Not a, b, or c

Quantifiers

  • * - 0 or more
  • + - 1 or more
  • ? - 0 or 1
  • {n} - Exactly n
  • {n,} - n or more
  • {n,m} - Between n and m

Anchors & Groups

  • ^ - Start of line
  • $ - End of line
  • \b - Word boundary
  • (abc) - Capture group
  • (?:abc) - Non-capture group
  • a|b - a or b