Validator
Enter pattern without surrounding slashes.
/pattern/flags
Waiting for a regex pattern.
Highlight
Matches will be highlighted here.
Matches
Run a regex to see matches.
Generator
/^\d{1,10}$/
Templates
Basic email address
/^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}$/i
Example: hello@puretools.dev
URL (http/https)
http/https URL with optional path
/^https?:\/\/[\w.-]+(?:\:[0-9]{2,5})?(?:\/[\w\-./?%&=]*)?$/i
Example: https://example.com/docs?ref=home
IPv4
IPv4 address
/^(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}$/
Example: 192.168.0.1
Hex Color
3 or 6 digit hex color
/^#?(?:[A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/
Example: #ff8800
Date (YYYY-MM-DD)
Simple calendar date
/^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])$/
Example: 2026-03-13