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.aspku.com/kaifa/cjc/80228.html
http://www.bkjia.com/zzbds/1064741.html
http://www.cnblogs.com/fqw1987815/archive/2010/09/28/1837488.html