route_verification_common_regex/
lib.rs1pub use const_format::formatcp;
2pub use lazy_regex::regex::{Captures, Regex, RegexBuilder, Replacer};
3pub use once_cell::sync::{Lazy, OnceCell};
4
5pub mod set;
6#[cfg(test)]
7mod tests;
8
9#[macro_export]
11macro_rules! regex {
12 ($re:expr $(,)?) => {{
13 use $crate::*;
14 static RE: OnceCell<Regex> = OnceCell::new();
15 RE.get_or_init(|| {
16 RegexBuilder::new($re)
17 .case_insensitive(true)
18 .build()
19 .unwrap()
20 })
21 }};
22}
23
24pub const RANGE_OPERATOR: &str = r"\^(:?\-|\+|[0-9]+(:?\-[0-9]+)?)";