Macro lazy_regex_proc_macros::regex_is_match[][src]

regex_is_match!() { /* proc-macro */ }
Expand description

test whether an expression matches a lazy static regular expression (the regex is checked at compile time)

Example:

use lazy_regex::regex_is_match;

let b = regex_is_match!("[ab]+", "car");
assert_eq!(b, true);