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 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

Flags

g Global
i Case insensitive
m Multiline
s Dotall