Back to Tools

RegEx Tester & Builder

Test, build, and understand regular expressions with visual feedback

Common Patterns

Regular Expression

//g
g: global, i: case insensitive, m: multiline, s: dotall, u: unicode, y: sticky

Test String

Match Results
0 matches

Enter a pattern and test string to see matches

Quick Reference

Characters
. - Any character
\d - Digit (0-9)
\w - Word character
\s - Whitespace
Quantifiers
* - 0 or more
+ - 1 or more
? - 0 or 1
{n,m} - n to m times
Anchors
^ - Start of string
$ - End of string
\b - Word boundary
Groups
() - Capture group
(?:) - Non-capture
[abc] - Character set
[^abc] - Negated set