Regex Validator

Test and validate regular expressions with live highlighting

Live
Offline
//g

Quick Reference

. - Any character
\\d - Digit [0-9]
\\w - Word char
\\s - Whitespace
^ - Start of line
$ - End of line
* - 0 or more
+ - 1 or more
? - 0 or 1
{n} - Exactly n
[abc] - Character class
(group) - Capture group