Skip to content

This crate just gives you the `regex` macro from the `once_cell` docs.

License

Notifications You must be signed in to change notification settings

joelparkerhenderson/once-cell-regex

 
 

Repository files navigation

once-cell-regex

crates.io badge docs.rs badge Travis badge

Wow! Super exciting crate! Amazing! 💯💯💯

This crate just gives you the regex macro from the once_cell docs: https://docs.rs/once_cell/1.2.0/once_cell/index.html#building-block

I also threw in a regex_multi_line macro, since it's a nice thing to have.

Example

use once_cell_regex::regex;

fn main() {
    let r = regex!("hello");
    let x = r.is_match("hello world");
    println!("{}", x); // prints "true"
}

About

This crate just gives you the `regex` macro from the `once_cell` docs.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 100.0%