Regex Tester & Replace
Test and replace with regular expressions in real-time. Matching, highlighting, substitution, and match details. JavaScript regex engine.
/
/
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