Macro lazy_regex::bytes_regex

source ยท
bytes_regex!() { /* proc-macro */ }
Expand description

Return a lazy static regex::bytes::Regex checked at compilation time and built at first use.

Flags can be specified as suffix:

let case_insensitive_regex = bytes_regex!("^ab+$"i);
assert!(case_insensitive_regex.is_match(b"abB"));