【发布时间】:2010-06-28 20:36:36
【问题描述】:
使用 linq (.net 3.5 +) 和 predicate builder,我是这样做的:
var startsWith3Chars = new System.Text.RegularExpressions.Regex(@"^[a-zA-Z]{3}\-", System.Text.RegularExpressions.RegexOptions.Compiled);
wherePredicate = wherePredicate.And(x => startsWith3Chars.Matches(x.MATERIALUID).Count > 0);
但现在我需要在命令文本中进行过滤。
有没有办法使用 REGEXP_INSTR 之类的东西来限制基于正则表达式的结果?
【问题讨论】: