如何判断字符串中含有时间? “contract.signdate>='2005-2-1' and contract.signdate<='2006-2-9' and contract.pid=0 and contract.pointer=0”这样一个字符串中如何判断含有时间字符串像'2005-2-1'? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 判断是否存在:string SubjectString = “contract.signdate>='2005-2-1' and contract.signdate<='2006-2-9' and contract.pid=0 and contract.pointer=0”;bool FoundMatch = false;try { FoundMatch = Regex.IsMatch(SubjectString, "(19|20)\\d\\d[- /.]([1-9]|0[1-9]|1[012])[- /.]([1-9]|0[1-9]|[12][0-9]|3[01])");} catch (ArgumentException ex) { // Syntax error in the regular expression} 在.net中找不到资源文件properties\resources.resx 问下vs2005软件问题 求字符串转换 怎样在域中加载Dll DataGridView中,怎样用代码指定某列为datagrisviewcheckboxcolumn 如何根据传入的方法名称(字符串)调用相应方法 这个也有问题???????????? 如何在c#中实现可以移动的菜单条 求随机排列数组元素的算法: 浪尘来拿分吧5 我感觉自己快要迷失了.... listbox的问题
try {
FoundMatch = Regex.IsMatch(SubjectString, "(19|20)\\d\\d[- /.]([1-9]|0[1-9]|1[012])[- /.]([1-9]|0[1-9]|[12][0-9]|3[01])");
} catch (ArgumentException ex) {
// Syntax error in the regular expression
}