当前位置: 代码迷 >> ASP.NET >> 就想把引号里面的内容提取出来,如何这么难啊.
  详细解决方案

就想把引号里面的内容提取出来,如何这么难啊.

热度:5233   发布时间:2013-02-25 00:00:00.0
就想把引号里面的内容提取出来,怎么这么难啊..........
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);
  相关解决方案