Skip to main content

is_match

Function is_match 

Source
pub fn is_match(
    field: &str,
    value: &str,
    pattern: &str,
    custom: Option<&str>,
) -> Result<(), ValidationException>
Expand description

Requires value to match the regex pattern. An invalid pattern is itself an error.