Reference
.
non-newline char^
start of line$
end of line\b
word boundary\B
non-word boundary\A
start of subject\z
end of subject\d
decimal digit\D
non-decimal digit\s
whitespace\S
non-whitespace\w
word character\W
non-word character(a|z)
a or z[az]
a or z[^az]
not a or z[a-z]
a through z(foo)
capture fooa?
0 or 1 aa*
0 or more aa+
1 or more aa{3}
3 of aa{3,}
3 or more aa{3,5}
3 through 5 aModifiers (enable: (?a)
, disable: (?-a)
)
u
unicodei
case insensitives
dot matches newlinem
multilinex
whitespace ignoredf
start on first liner
inverts greedinessFor more information see the documentation for the regex crate .