Regex Tester
Test and debug regular expressions in real-time
/
/
Test String
Regex Cheatsheet (Click to expand)
Character Classes
. | Any character |
\d | Digit (0-9) |
\w | Word char |
\s | Whitespace |
[abc] | Any of a,b,c |
Quantifiers
* | 0 or more |
+ | 1 or more |
? | 0 or 1 |
{n} | Exactly n |
{n,m} | n to m |
Anchors & Groups
^ | Start |
$ | End |
\b | Word boundary |
(abc) | Capture |
a|b | a or b |
The Regex Tester is a powerful tool for testing and debugging regular expressions. Features include: real-time pattern matching with highlighted results, find & replace with capture group support, string splitting, flags support (global, case-insensitive, multiline, dotall, unicode), and a library of common patterns for emails, URLs, phone numbers, IP addresses, dates, credit cards, and more. Includes a comprehensive regex cheatsheet for quick reference.