Search for a command to run...
Test regular expressions against a string and see matches highlighted in real‑time.
Click any template to instantly load a pattern and test string into the tester above.
Email Address
Match email addresses in text
/[\w.+-]+@[\w-]+\.[\w.]+/g
URL
Match http/https URLs
/https?://[\w.-]+(?:\.[\w.]+)+[\w\-._~:/?#[\]@!$&'()*+,;=%]*/gi
IPv4 Address
Match IPv4 addresses
/\b(?:\d{1,3}\.){3}\d{1,3}\b/g
Hex Color
Match CSS hex color codes
/#(?:[0-9a-fA-F]{3}){1,2}\b/g
Date (YYYY-MM-DD)
Match ISO 8601 dates
/\b(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])\b/g
Named Groups
Named capture groups for first/last name
/(?<first>[A-Z][a-z]+)\s(?<last>[A-Z][a-z]+)/g
A simple guide to the most common regex syntax.