← Back to Home

Regex Tester

Test and debug regular expressions with live matching and replacement

0 matches

Regex Quick Reference

Character Classes

  • . - Any character except newline
  • \d - Digit [0-9]
  • \w - Word [A-Za-z0-9_]
  • \s - Whitespace
  • [abc] - Any of a, b, or c
  • [^abc] - Not a, b, or c

Quantifiers

  • * - 0 or more
  • + - 1 or more
  • ? - 0 or 1
  • {3} - Exactly 3
  • {3,} - 3 or more
  • {3,5} - 3 to 5

Anchors

  • ^ - Start of string/line
  • $ - End of string/line
  • \b - Word boundary
  • \B - Not word boundary

Groups & Lookaround

  • (abc) - Capture group
  • (?:abc) - Non-capturing group
  • (?=abc) - Positive lookahead
  • (?!abc) - Negative lookahead