Regex Tester & Explainer

Test regular expressions with live match highlighting. Powered by Python's re module. Supports flags: i ignore case · m multiline · s dotall.

Pattern & Test String
Enter a Python-compatible regex pattern
Space-separated: i = ignore case, m = multiline, s = dotall
Quick Examples
Results

Enter a pattern and test string, then click Test Pattern

Or click a quick example above to get started

Common Regex Patterns Reference
[\w\.-]+@[\w\.-]+\.\w+Email address
https?://[^\s]+URL
\d{4}-\d{2}-\d{2}ISO date (YYYY-MM-DD)
\+?\d[\d\s\-]{7,}Phone number
#[0-9a-fA-F]{6}Hex colour
\b\d{1,3}(\.\d{1,3}){3}\bIPv4 address
^[A-Za-z0-9._%+-]+@Email local part
\b[A-Z][a-z]+ [A-Z][a-z]+\bFull name
Related Tools