Since PatternValidator will be initialized for every related validation, it would be better for performance to cache java.util.regex.Pattern.