Return an instance of once_cell::sync::Lazy<bytes::Regex>
that
you can use in a public static declaration.
Return a lazy static regex::bytes::Regex
checked at compilation time and
built at first use.
Extract captured groups as a tuple of &
u8Extract the leftmost match of the regex in the
second argument as a &[u8]
Test whether an expression matches a lazy static
bytes::Regex regular expression (the regex is checked
at compile time)
Replaces the leftmost match in the second argument
using the replacer given as third argument.
Replaces all non-overlapping matches in the second argument
using the replacer given as third argument.
Define a set of lazy static statically compiled regexes, with a block
or expression for each one. The first matching expression is computed
with the named capture groups declaring &str
variables available for this
computation.
If no regex matches, return None
.
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.
Return an Option, with T being the type returned by the block or expression
given as third argument.
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
using the replacer given as third argument.
Replaces all non-overlapping matches in the second argument
using the replacer given as third argument.
Define a set of lazy static statically compiled regexes, with a block
or expression for each one. The first matching expression is computed
with the named capture groups declaring &str
variables available for this
computation.
If no regex matches, return None
.