Regex Tester

Online regular expression testing and debugging with multiple matching modes

Regular Expression

//
Characters: 0

Results

Highlighted Text

Quick Reference

Metacharacters

  • . - Any character
  • ^ - Line start
  • $ - Line end
  • \d - Digit (0-9)
  • \w - Word character
  • \s - Whitespace

Quantifiers

  • * - Zero or more
  • + - One or more
  • ? - Zero or one
  • {n} - Exactly n times
  • {n,} - At least n times
  • {n,m} - Between n and m times

Grouping

  • () - Capture group
  • (?:) - Non-capture group
  • | - OR operator
  • [] - Character set
  • [^] - Negated set