Regex Tester

Test and validate regular expressions in real-time (JS). Use the server-side check for strict PHP/PCRE compatibility.

/ /
Need PHP Validation? Check if this pattern works in your backend code.

Cheatsheet

Character Classes
Any Character .
Digit \d
Word Char \w
Whitespace \s
Not Digit \D
Anchors
Start of String ^
End of String $
Word Boundary \b
Quantifiers
0 or more *
1 or more +
0 or 1 ?
Exactly 3 {3}
3 or more {3,}
Groups
Capture Group (...)
Non-capturing (?:...)
Set [abc]
Range [a-z]