Regex Tester
Test JavaScript regular expressions with live highlighting. Everything runs in your browser.
/
/
Match Highlighting
0 matches
Matches will appear here...
Character Classes
. Any character
\d Digit [0-9]
\w Word char [a-zA-Z0-9_]
\s Whitespace
[abc] Character set
[^abc] Negated set
Quantifiers
* 0 or more
+ 1 or more
? 0 or 1
{n} Exactly n
{n,m} Between n and m
Anchors & Groups
^ Start of string
$ End of string
\b Word boundary
(abc) Capture group
(?:abc) Non-capture group
a|b Alternation
Common Patterns
About Regex Tester
This tool uses the browser's native RegExp engine (JavaScript). Syntax may differ slightly from PCRE (PHP, Python) or other flavors.
All processing happens client-side. Your test strings are never sent to any server.