Regex Tool

Test, generate, or explain regular expressions

/ /
Test String

Quick Reference

. Any char
\d Digit
\w Word char
\s Whitespace
^ Start
$ End
* 0+ times
+ 1+ times
? 0 or 1
{n} Exactly n
[abc] Char class
(x) Capture

Try these examples

/ /

Try these examples