Regex Tester
Enter a pattern to begin.
- Matches and capture groups will be listed here.
Explanation
Your regex explanation will appear here.
Regex Cheatsheet
. | Any character (except newline) |
\d , \w , \s | Digit, Word, Whitespace |
\D , \W , \S | Not a digit, word, whitespace |
[abc] | Any of a, b, or c |
[^abc] | Not a, b, or c |
[a-z] | Characters a to z |
a|b | a or b |
^ , $ | Start/end of the string |
* , + , ? | 0+, 1+, or 0-1 occurrences |
{n} , {n,} , {n,m} | Exactly n, n or more, n to m |
(...) | Capture Group |
\n | Reference to group 'n' |