⚡ Developer Tools

Regex Tester

Test regular expressions with real-time matching, capture groups, and match highlighting.

100% Private — Your data never leaves your browser
//
0 matches

Regex Quick Reference

Character Classes

  • . any character except newline
  • \w \W word / not word
  • \d \D digit / not digit
  • \s \S whitespace / not whitespace
  • [abc] any of a, b, or c
  • [^abc] not a, b, or c
  • [a-g] character between a & g

Anchors & Boundaries

  • ^ start of string/line
  • $ end of string/line
  • \b word boundary
  • \B not word boundary

Quantifiers

  • * 0 or more
  • + 1 or more
  • ? 0 or 1
  • {3} exactly 3
  • {3,} 3 or more

Common Flags

  • g global match
  • i ignore case
  • m multiline
  • s dot all

Groups

  • (abc) capture group
  • (?:abc) non-capturing group
  • (?<name>) named capture group

Related Tools