pub fn regex<T: Pattern, D, C>(pattern: &str) -> Validator<T, D, C>
Validate a string matches the provided regex pattern.