regex-macro
This crate contains a little macro to generate a lazy Regex
and remove some
boilerplate when compiling regex expressions.
Usage
The following panics when given a bad regex.
use regex;
let re = regex!;
The following errors when given a bad regex.
use regex;
let re = try_regex!.expect;
// or propagate
let re = try_regex!?;
License
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.