Regex Tester & Explainer

Regex Pattern
/ /
Pattern Explanation: Enter a regex pattern above to see detailed explanation.
Test Text
Results

Test your regex to see results here.

Saved Tests

No saved tests yet.

Quick Reference
Character Classes:
  • \d - Digits (0-9)
  • \w - Word characters (a-z, A-Z, 0-9, _)
  • \s - Whitespace characters
  • . - Any character (except newline)
Quantifiers:
  • * - 0 or more
  • + - 1 or more
  • ? - 0 or 1
  • {n} - Exactly n
  • {n,} - n or more
  • {n,m} - n to m
Anchors:
  • ^ - Start of string
  • $ - End of string
  • \b - Word boundary