regex!() { /* proc-macro */ }Expand description
Create a regex matcher
§Regex Syntax
.: matches any charactera: matches the characteraa*: matches zero or moreaa?: matches zero or oneaa+b: matchesaorb(a+b)*: matches zero or moreaorb
§Example
use dfa_regex::regex;
regex!(Foo => "a*");
assert!(Foo::matches("aaaa"));
assert!(Foo::matches(""));
assert!(!Foo::matches("b"));