Skip to main content

regex_matches

Function regex_matches 

Source
pub fn regex_matches(value: &str, pattern: &str) -> bool
Expand description

Tests whether value matches the regular expression (the MATCHES operator).

The match is unanchored, mirroring the reference implementation. An invalid regex never matches (returns false rather than erroring).