全部博文(1293)
分类: 信息化
2016-04-22 17:22:25
Match matchB = Regex.Match("abcdaBCdefg", @"\Babcd\B", RegexOptions.IgnoreCase);
Console.WriteLine(matchB.Value);
Match matchBError = Regex.Match("abcdaBCdefg", @"\babcd\b", RegexOptions.IgnoreCase);
Console.WriteLine("match error " + matchBError.Value);
Match mathcb = Regex.Match("good bad regexsoso", @"\bbad\b", RegexOptions.IgnoreCase);
Console.WriteLine(mathcb.Value);
Match mathcbError = Regex.Match("good bad regexsoso", @"\Bad\B", RegexOptions.IgnoreCase);
Console.WriteLine("match error" + mathcb.Value);
等验证。。。
得参考
参考文献:
http://www.cnblogs.com/fqw1987815/archive/2010/09/28/1837488.html