Regex reg= new Regex("<h3>.*</h3>")怎么直接获取星号部分的内容

 Regex reg= new Regex("<h3>.*</h3>")

怎么直接获取星号部分的内容

你的想要怎么截取,你这个是后台代码么?想要在前台截取?

你定义的是正则,不是这样的吧~
Regex regex = new Regex(@"(?<='

').+(?='

')");
string testStr = "

*

";
Match result = regex.Match(testStr);
if (result.Success)
{
var tmp = result.Value;//此为匹配出的值
}
是这样的?