A minimal regular expression engine built on top of non-deterministic finite automata(NFAs).
Use within RegEx::from_pattern()
.
matches any single character|
for alternate:a|b
matchesa
orb
[]
for character classes:[abc]
matches any character in the set- Use
^
at the beginning to negate:[^abc]
matches any character excepta
,b
, orc
- Predefined character classes:
\d
,\D
for digits\l
,\L
for lowercase letters\u
,\U
for uppercase letters\s
,\S
for whitespace