Added AbstractRegexValidator and refactored regex based validators to extend it.