实现效果:
关键运用:
实现代码:
public bool IsValidateDay(string str_day) { return System.Text.RegularExpressions. Regex.IsMatch(str_day,@"^((0?[0-9])|((1|2)|[0-9])|30|31)$"); }