日期:2014-05-16  浏览次数:20288 次

在请教正则问题
C# code

string input=@"<p>\r\n uuuu</p>\r\n";//这样为什么就能mactch到
string input = @message; //message="<p>\r\n uuuu</p>\r\n"; //我这样写为什么就match不到?或者@这个地方应该怎么写?

Match m=Regex.Match(input,@"<([^>]+)>\S*(.*?)</\1>\S*");
string value=m.Groups[2].Value;



------解决方案--------------------
你把那个input输出来看下。。是什么样的