Devquarium logo
Regex Editor
CSS Selector Tester
Color Palette
Contrast Checker
EN
FR EN

Regex Editor

Create and test regular expressions effortlessly with our intuitive tool—perfect for developers, analysts, and QA teams

quick_reference Manual
flag
TEXT
1
Result

Manual
close
Basic symbols
Expression MeaningExample
.Any character except newlinea.b → aab, acb, a9b
^Start of line^Hello → Hello world
$End of lineworld$ → Hello world
*Zero or morego* → g, go, goo
+One or morego+ → go, goo
?Zero or onecolou?r → color, colour
|ORcat|dog → cat, dog
()Group(ha)+ → ha, haha
Character Classes
Expression MeaningExample
[abc]a, b, or cc[aeiou]t → cat, cot
[^abc]Not a, b, or c[^0-9] → excludes digits
[a-z]Lowercase letters[A-Z] → Uppercase letters
[0-9]Digits\d → same as [0-9]
Escape Sequences
Expression MeaningExample
\dDigit\d{3} → 123, 456
\wWord character\w+ → hello, user123
\sWhitespace\s+ → spaces, tabs
\bWord boundary\bcat\b → The cat sleeps
\\Backslash\\n → matches "\n"
Quantifiers
Expression MeaningExample
{n}Exactly n timesa{3} → aaa
{n,}At least n timesa{2,} → aa, aaa
{n,m}Between n and m timesa{2,4} → aa, aaa, aaaa
cookie
Cookies
This website uses cookies to optimize your experience
Confirm
Decline