Regular Expression Tester
Regular Expression
Test Text
Enter a regex pattern to test
Match Details
Index | Full Match | Groups | Index Range |
---|---|---|---|
No matches found |
Regex Cheat Sheet
Character Classes
.
- Matches any character except newline\w
- Matches word characters (a-z, A-Z, 0-9, _)\d
- Matches digits (0-9)\s
- Matches whitespace (space, tab, newline)[abc]
- Matches either a, b or c[^abc]
- Matches any character except a, b or c
Quantifiers
a*
- 0 or more of aa+
- 1 or more of aa?
- 0 or 1 of aa{3}
- Exactly 3 of aa{3,}
- 3 or more of aa{3,5}
- 3, 4, or 5 of a
Anchors & Groups
^abc
- Start of stringabc$
- End of string(abc)
- Capture group(?:abc)
- Non-capturing groupa|b
- a or b\b
- Word boundary