Regex Tester

Test and debug regular expressions in real-time. Match, replace, and split text with regex patterns. All processing happens locally in your browser.

Matches Found

0 matches

Enter a regex pattern and test text to see matches

Highlighted Text

Matches will be highlighted here

Regex Information

Enter a regex pattern to see information

Common Regex Patterns

Email Address

^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$

Phone Number (US)

^\(?\d{3}\)?[-.\s]?\d{3}[-.\s]?\d{4}$

URL

^(https?:\/\/)?([\da-z\.-]+)\.([a-z\.]{2,6})([\/\w \.-]*)*\/?$

IP Address

^(\d{1,3}\.){3}\d{1,3}$

Regex Cheat Sheet

\d Digit (0-9)
\w Word character
\s Whitespace
^ Start of line
$ End of line
* 0 or more
+ 1 or more
? 0 or 1