pub fn regex(re: Regex) -> StringValidator
Create a string validator anchored to the given regex pattern.