Regex Tester

Test and debug regular expressions with live results and match highlighting. Perfect for pattern matching and validation.

//

Common flags: g (global), i (case-insensitive), m (multiline)

Highlighted Matches (0)

Matches will be highlighted here...

Match Details

No matches found. Try adjusting your regex pattern.

Common Regex Patterns

\d+

Match one or more digits

[a-zA-Z]+

Match letters only

\w+@\w+\.\w+

Simple email pattern

^https?://

Match URL beginning

Quick Reference

Character Classes

  • \d - Digit
  • \w - Word character
  • \s - Whitespace
  • . - Any character

Quantifiers

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

Anchors

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