实现效果:
运用知识:
实现代码:
//定义方法
public bool IsValidate(string str_month) {
return System.Text.RegularExpressions.
Regex.IsMatch(str_month,@"(^0?[0-9]$|^1[0-2]$)");
}
实现效果:
运用知识:
实现代码:
//定义方法
public bool IsValidate(string str_month) {
return System.Text.RegularExpressions.
Regex.IsMatch(str_month,@"(^0?[0-9]$|^1[0-2]$)");
}
相关文章: