日期:2014-05-18  浏览次数:20494 次

就想把引号里面的内容提取出来,怎么这么难啊..........
Match   mc   =   Regex.Match(strXML, "\ "(? <content> [\s\S]*?)\ " ",RegexOptions.IgnoreCase);

大概想这样,就是出错~~~

------解决方案--------------------
Match mc = Regex.Match(strXML, "\ "(? <content> [\\s\\S]*?)\ " ",RegexOptions.IgnoreCase);
或者
Match mc = Regex.Match(strXML,@ " " "(? <content> [\s\S]*?) " " ",RegexOptions.IgnoreCase);