首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > asp.net >

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

2011-12-23 
就想把引号里面的内容提取出来,怎么这么难啊..........MatchmcRegex.Match(strXML, \ (? content [\s

就想把引号里面的内容提取出来,怎么这么难啊..........
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);

热点排行