Macro const_str::regex_assert_match
source · macro_rules! regex_assert_match { ($re: literal, $text: literal) => { ... }; }
Available on crate feature
regex
only.Expand description
Asserts that the string literal matches the pattern.
§Examples
const_str::regex_assert_match!(r"^\d{4}-\d{2}-\d{2}$", "2014-01-01");