日期:2014-05-18 浏览次数:21464 次
string test = " <100 or >50 or <1000";
Regex reg = new Regex(@"(?isn)(?<c>((?!or).)+)(or|$)");
MatchCollection mc = reg.Matches(test);
foreach (Match m in mc)
{
richTextBox2.Text += m.Groups["c"].Value + "\n";
}