Wow! Super exciting crate! Amazing! 💯💯💯
This crate just gives you the regex
macro from the once_cell
docs:
https://docs.rs/once_cell/*/once_cell/index.html#lazily-compiled-regex
I also threw in a regex_multi_line
macro, since it's a nice thing to have.
use once_cell_regex::regex;
fn main() {
let r = regex!("hello");
let x = r.is_match("hello world");
println!("{}", x); // prints "true"
}