🔍 Regex Tester

Test and debug regular expressions with real-time matching.

/ /

Matches

0 matches

Substitution


          
        

Quick Reference

Character Classes

  • . - Any character except newline
  • \w - Word character [A-Za-z0-9_]
  • \d - Digit [0-9]
  • \s - Whitespace
  • [abc] - Any of a, b, or c
  • [^abc] - Not a, b, or c

Quantifiers

  • * - 0 or more
  • + - 1 or more
  • ? - 0 or 1
  • {n} - Exactly n
  • {n,} - n or more
  • {n,m} - Between n and m

Anchors

  • ^ - Start of string/line
  • $ - End of string/line
  • \b - Word boundary
  • \B - Not word boundary

Groups

  • (abc) - Capturing group
  • (?:abc) - Non-capturing group
  • (?<name>abc) - Named group
  • (a|b) - Either a or b

Saved Patterns