如何对此文本进行正则表达式替换:
<span style=\"text-decoration: underline;\">Request Block Host</span> to
`<u>Request Block Host</u>`
到目前为止,我有这个,假设“文本”是具有上述标签的完整字符串。
text = Regex.Replace(text, "<span style=\"text-decoration: underline;\">.*?</span>", delegate(Match mContent)
{
return mContent.Value.Replace("<span style=\"text-decoration: underline;\">", "<u>").Replace("</span>", "</u>");
}, RegexOptions.IgnoreCase);