Test regular expressions with live highlighting, plain-English suggestions, and 50+ pre-built patterns for email, URL, and phone. Free regex tester for developers.
A basic email regex: /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/ — load this from our email pattern in the library and test it with your input directly in the tester.
Common flags: g (global — find all matches), i (case insensitive), m (multiline — ^ and $ match line boundaries), s (dotAll — dot matches newlines). Combine as needed: /pattern/gi
Parentheses () create capture groups that extract specific parts of a match. Example: /(\d{4})-(\d{2})-(\d{2})/ on '2026-04-15' captures year, month, and day separately. Our tester shows all captured groups.
.* matches zero or more characters (including none). .+ matches one or more characters (at least one required). Use .* when the pattern may be absent, .+ when at least one character must be present.
Yes, completely free with no signup. Test unlimited patterns, access the full pattern library, and get plain English explanations for any regular expression.
Our tester uses the JavaScript regex engine (PCRE-like). Most syntax is compatible with Python, Java, and PHP. Some lookbehind and atomic group features differ between engines — we label JavaScript-specific syntax in the pattern library.