Macro lazy_regex::regex_find[][src]

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

Extract the leftmost match of the regex in the second argument, as a &str

Example:

let f_word = regex_find!(r#"\bf\w+\b"#, "The fox jumps.");
assert_eq!(f_word, Some("fox"));