Skip to content

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

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

francesca64/once-cell-regex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

once-cell-regex

crates.io badge Docs.rs badge GitHub Actions badge

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.

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

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages