Regex Tester
Test and debug regular expressions
Pattern Status
Not tested
Matches Found
0
Flags
g
Regular Expression
Enter your regex pattern
//g
Replace
Replace matched text
Test String
Text to test against the pattern
Regex Reference
Character Classes
. - Any character
\d - Digit [0-9]
\w - Word [A-Za-z0-9_]
\s - Whitespace
\D - Not digit
\W - Not word
\S - Not whitespace
Quantifiers
* - 0 or more
+ - 1 or more
? - 0 or 1
{n} - Exactly n
{n,} - n or more
{n,m} - Between n and m