Regex Tester & Simulator

Test regular expressions in real time with live highlighting, match inspection, and capture groups

/
/
Live Match Highlighting (2 matches found)2 Matches
Contact our support team at contact@example.com or sales@company.org for enterprise inquiries. Invalid: john@domain

Match Details & Capture Groups:

#IndexMatched StringLengthCapture Groups
128contact@example.com19 charsNone
251sales@company.org17 charsNone

Regular Expressions Quick Reference

Character Classes

  • . Any character except newline
  • \d Any digit [0-9] | Non-digit (\D)
  • \w Word character [a-zA-Z0-9_] | Non-word (\W)
  • \s Whitespace character | Non-whitespace (\S)

Quantifiers & Anchors

  • + 1 or more (+) | 0 or more (*) | 0 or 1 (?)
  • {2,5} Between 2 and 5 occurrences
  • ^ Start of string (^) | End of string ($)
  • \b Word boundary