← back
Mirage / Dev Tools / Regex Tester + Explainer
Dev Tools
Dev Tools
Regex Tester + Explainer
Write a regex pattern, see matches highlighted, get a plain-english breakdown of every symbol. 8 preset patterns included.
Regex Tester
write a pattern → see matches highlighted + explanation
/ /
quick patterns
syntax cheatsheet
.any character except newline
*0 or more of previous
+1 or more of previous
?0 or 1 (optional)
{n,m}between n and m times
^start of string
$end of string
[abc]any of a, b, c
[^abc]not a, b, or c
[a-z]range a to z
\ddigit [0-9]
\wword char [a-zA-Z0-9_]
\swhitespace
\bword boundary
(abc)capture group
a|ba or b
(?:...)non-capturing group
(?=...)lookahead (must follow)