开发者

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

开发者 https://www.devze.com 2022-12-31 09:25 出处:网络
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\", RegexOption

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

精彩评论

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