固定格式我汉字如何用正则表达式检测
我要检测字符串是否为 如果***就** 格式,用正则表达式怎么写?
[解决办法]
- VB.NET code
dim s as string = "xxxx"if Regex.IsMatch(s,"如果.+?就.*?") thenend if
发布时间: 2012-08-22 09:50:35 作者: rapoo
固定格式我汉字如何用正则表达式检测
我要检测字符串是否为 如果***就** 格式,用正则表达式怎么写?
[解决办法]
dim s as string = "xxxx"if Regex.IsMatch(s,"如果.+?就.*?") thenend if