Crate lazy_regex_proc_macros
source ·Macros
Return an instance of
once_cell::sync::Lazy<regex::Regex>
or
once_cell::sync::Lazy<regex::bytes::Regex>
that
you can use in a public static declaration.Return a lazy static Regex checked at compilation time and
built at first use.
Extract captured groups as a tuple of &str.
Extract the leftmost match of the regex in the
second argument, as a
&str
, or a &[u8]
if the B
flag is set.Test whether an expression matches a lazy static
regular expression (the regex is checked at compile
time)
Replaces the leftmost match in the second argument
with the value returned by the closure given as third argument.
Replaces all non-overlapping matches in the second argument
with the value returned by the closure given as third argument.