Regex Tool

Build, test, and debug regular expressions in real time. Highlights matches and capture groups.
/ / gi
. Any character
\d Digit
\w Word char
\s Whitespace
\b Word boundary
^ Start of line
$ End of line
* 0 or more
+ 1 or more
? 0 or 1
{n,m} n to m times
() Capture group
(?:) Non-capture
(?=) Lookahead
[^] Negated class
| Alternation