Test regular expressions with live highlighting and capture group extraction
No matches found yet.
Click any pattern to load it into the tester
^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$
https?://(?:www\.)?...
^\+?1?\s*\(?(\d{3})\)?...
^(?:(?:25[0-5]|2[0-4][0-9]...)\.){3}...
^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|...)
^#?([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$
^[a-zA-Z0-9_-]{3,16}$
^\d{4}[\s-]?\d{4}[\s-]?\d{4}[\s-]?\d{4}$
^\d{3}-\d{2}-\d{4}$
^\d{5}(?:-\d{4})?$
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-...
<([a-z]+)([^<]+)*(?:>...)
| . | Any character except newline |
| \d | Digit [0-9] |
| \w | Word character [a-zA-Z0-9_] |
| \s | Whitespace |
| [abc] | Character set |
| * | 0 or more |
| + | 1 or more |
| ? | 0 or 1 |
| {n} | Exactly n times |
| {n,m} | Between n and m times |
| ^ | Start of string |
| $ | End of string |
| (abc) | Capture group |
| (?:abc) | Non-capturing group |
| a|b | Alternation (or) |