Real-time Regex Tester

Test your regular expressions against a string and see the matches highlighted instantly.

Your Regular Expression

//

Test String

Result

Hello World 123, this is a test string.

Regex Cheat Sheet

Click a pattern to use it.

Email

^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$

Phone (India)

^(?:\+91)?[ -]?[789]\d{9}$

URL

^(https?|ftp):\/\/[^\s/$.?#].[^\s]*$

Date (YYYY-MM-DD)

^\d{4}-\d{2}-\d{2}$

IPv4 Address

^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$