Regex Tester

Test regular expressions in real-time with JavaScript regex flavor.

/ /

Quick Reference

Character Classes
. 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

About Regular Expressions

Regular expressions (regex) are patterns used to match character combinations in strings. They're incredibly powerful for text processing, validation, and search-and-replace operations.

Common Use Cases

Tips