Regex Tester & Explainer
Test regex with a live token-by-token pattern explainer, matching, highlighting, and replace. JavaScript regex engine, 100% client-side.
/
/
Regex Quick Reference
Characters
. Any character\d Digit [0-9]\w Word [a-zA-Z0-9_]\s WhitespaceQuantifiers
* 0 or more+ 1 or more? 0 or 1{n,m} n to m timesAnchors
^ Start of string$ End of string\b Word boundaryFlags
g Globali Case insensitivem Multilines Dotall