Regex Lab

Test, Debug, and Understand Regular Expressions Instantly.

Email
Phone
URL
Digits
Date

Regex Explanation

Cheat Sheet

\d → Digit
\w → Word
\s → Whitespace
. → Any Character
+ → One or More
* → Zero or More
? → Optional
^ → Start
$ → End
[] → Character Set
() → Group
| → OR

Matches Found: 0

Highlighted Output

Sample Regex Library