开发者

Regex to replace tr tag with th tag anywhere in html file

What should be the regex for replacing a tr tag with a th tag for the table tag anywhere in 开发者_运维知识库an HTML file ?


Regex.Replace(html, @"(?<=<(/)?)th(?=[\s>])", "tr", RegexOptions.IgnoreCase);
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜