Regex Tester

Test regular expressions with live highlighting

//
Flags:
Hello, my email is john.doe@example.com and my phone is (555) 123-4567. You can also reach me at jane_smith@company.org or visit https://www.example.com My IP address is 192.168.1.1 and the date is 2024-01-15. The color code is #FF5733 and the time is 14:30.

Common Patterns

Quick Reference

Character Classes

. Any character
\d Digit [0-9]
\w Word [a-zA-Z0-9_]
\s Whitespace

Quantifiers

* 0 or more
+ 1 or more
? 0 or 1
{n} Exactly n

Anchors

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

Groups

(abc) Capture group
(?:abc) Non-capture
a|b Alternation