QBQBCOO Tools

Online Regex Tester

Debug and test regular expressions online. Highlights matches, extracts groups and provides a library of common patterns to boost your productivity.

//
Common Patterns:
g: globali: ignore casem: multilines: dotallu: unicode
0 chars
Enter content and click a button to see results

About the Regex Tester

What is Regular Expression?

Regular expressions (regex) are powerful tools for pattern matching and string manipulation. They use a specific syntax to define search patterns for input validation, content extraction, text replacement and more. Almost all major programming languages support regex.

Syntax Reference

SyntaxDescriptionExample
\dDigit\d+ → "123"
\wWord char\w+ → "hello"
\sWhitespace\s → " "
.Any chara.b → "aab"
*Zero or morea* → "" / "aaa"
+One or morea+ → "a" / "aaa"
?Zero or onea? → "" / "a"
{n,m}n to m timesa{2,4} → "aa"~"aaaa"
[abc]Char class[aeiou] → vowel
[^abc]Negated class[^0-9] → non-digit
^Start of line^Hello
$End of lineend$
( )Capture group(\d+)-(\d+)
(?: )Non-capturing(?:ab)+
|Alternationcat|dog