DevTools

Regex Tester

Test regular expressions in real-time with highlighting

Regular Expression
//
Test String
Matches (0)
Enter a regex and test string
Regex Quick Reference

Character Classes

  • . - Any character
  • \d - Digit [0-9]
  • \w - Word [a-zA-Z0-9_]
  • \s - Whitespace

Quantifiers

  • * - 0 or more
  • + - 1 or more
  • ? - 0 or 1
  • {x} - Exactly x times

Anchors

  • ^ - Start of line
  • $ - End of line
  • \b - Word boundary