Macro lazy_regex_proc_macros::bytes_regex_find
source ยท bytes_regex_find!() { /* proc-macro */ }
Expand description
Extract the leftmost match of the regex in the
second argument as a &[u8]
Example:
let f_word = bytes_regex_find!(r#"\bf\w+\b"#, b"The fox jumps.");
assert_eq!(f_word, Some("fox".as_bytes()));