Back to Tools
Tools

RegEx Tester & Debugger

Test, debug, and learn regular expressions with real-time matching

Common Patterns

Cheat Sheet

Character Classes

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

Anchors

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

Quantifiers

  • * 0 or more
  • + 1 or more
  • ? 0 or 1
  • {n} Exactly n
  • {n,m} n to m

Groups

  • (...) Capturing group
  • (?:...) Non-capturing group
  • | OR

About Regular Expressions

Regular expressions (regex) are powerful patterns used for matching and manipulating text. They are supported in most programming languages and are essential for text processing.