正则表达式:搜索匹配的sql
发布时间:2020-12-14 02:26:24 所属栏目:百科 来源:网络整理
导读:using System.Text.RegularExpressions; private bool RegexMatch(string sSource,string sRegexFormat) { Regex reg = new Regex(sRegexFormat,RegexOptions.IgnoreCase); try { if (reg.IsMatch(sSource)) { return true; } else { return false; } } catc
using System.Text.RegularExpressions; private bool RegexMatch(string sSource,string sRegexFormat) { Regex reg = new Regex(sRegexFormat,RegexOptions.IgnoreCase); try { if (reg.IsMatch(sSource)) { return true; } else { return false; } } catch (Exception ex) { return false; } }RegexMatch(stringSource,"Mbr_Elig_Term_Date IS NULL") RegexMatch(stringSource,"ISNULL(.*MBR_ELIG_TERM_DATE.*)") RegexMatch(stringSource,"ISNULL(.{0,10}MBR_ELIG_TERM_DATE.{0,10})") RegexMatch(stringSource,20}[.[]MBR_ELIG_TERM_DATE.{0,10})") (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- [5]Cocos2d-x之坐标系
- ruby-on-rails – Rails:如何获取应用程序布局的applcatio
- 使用 Flash Builder 打包 AIR 应用程序
- Sequence在Oracle中的使用
- 设计模式 – 我是否应该注意传递XML设置文件的类表示违反了
- OCP-1Z0-051 第109题 聚合函数的使用
- cocos2dx 3.2在Eclipse上打包出现error: call of overloade
- 在同一站点下,跨子域进行ajax通信的一种解决方法
- 使用PostgreSQL COPY时出现“错误:上一个预期列之后的额外
- ruby – lambda的方法? Mats的示例代码让我很困惑.