.*
Regex Tester
Live matching · flag toggles · named groups · pattern library — runs locally, nothing is sent to a server.
Flags /…/g
0matches
0capture groups
Enter a pattern to see matches…
📚 Common patterns & cheatsheet — click a pattern to try it
TokenMeaningTokenMeaning
.any character except line break\d \w \sdigit · word char · whitespace
\D \W \SNOT digit · word · whitespace\bword boundary
^ $start · end of text (of line with m)[abc] [^abc]one of · none of
[a-z0-9]rangea|ba or b
* + ?0+ · 1+ · 0 or 1{3} {2,5} {2,}exactly · between · at least
*? +?lazy (as few as possible)(…)capture group
(?:…)group without capturing(?<name>…)named group
\1 \k<name>back-reference(?=…) (?!…)lookahead · negative lookahead
(?<=…) (?<!…)lookbehind · negative lookbehind\p{L} \p{N}any letter · number (needs u)
\. \* \\escape a special character\n \tline break · tab

Rate this tool