regex static method
Implementation
static TextValidator regex(RegExp regex, {MatchType matchType = MatchType.Entire, bool trim = false, bool allowEmpty = false, String message = "格式不符"}) {
return RegexValidator(regex: regex, matchType: matchType, trim: trim, allowEmpty: allowEmpty, message: message).call;
}