← All Tools

🔍 Regex Tester

Test and debug regular expressions with real-time matching and highlighting.

All processing happens locally in your browser. No data is sent to any server. GDPR/DORA compliant.
/ /

Highlighted Matches

Replace Mode

Common Patterns

Regex Quick Reference

Character Classes

  • . - Any character (except newline)
  • \d - Digit [0-9]
  • \w - Word char [a-zA-Z0-9_]
  • \s - Whitespace
  • [abc] - Character set
  • [^abc] - Negated set

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 string/line
  • $ - End of string/line
  • \b - Word boundary
  • (abc) - Capturing group
  • (?:abc) - Non-capturing
  • a|b - Alternation (OR)

Special

  • (?=abc) - Positive lookahead
  • (?!abc) - Negative lookahead
  • (?<=abc) - Positive lookbehind
  • (? - Negative lookbehind
  • \1 - Backreference
  • \\ - Escape special chars