Regex Tester & Debugger

Test regular expressions against test text with live match highlighting and pattern flags.

Need to validate JSON payloads? Try JSON Formatter →
⚡ Common Pattern Presets
/
Match Details 0 matches
Matches will appear here...
Highlighted Match Output
Match preview will highlight here...

Regular Expression Quick Reference

Character Classes

  • . - Any character except newline
  • \d - Any digit (0-9)
  • \w - Any word character (a-z, A-Z, 0-9, _)
  • \s - Any whitespace character (space, tab)
  • [abc] - Any single character inside brackets

Quantifiers & Anchors

  • ^ / $ - Start / End of string boundary
  • * - 0 or more occurrences
  • + - 1 or more occurrences
  • ? - 0 or 1 occurrence (optional)
  • {n,m} - Between n and m occurrences