My html as below
<body><table><tr><td> <h4><span><strong><span>This Text</span></strong></span></h4> </td> <td> <h4><span><strong>That Text<br></strong></span></h4> </td> <td> <h4><span><strong><span>Some Text</span></strong></span></h4> </td> <td><span><strong>0 505 253 56 13</strong></span></td></tr><table></body>
The following regex cleans all tags without a|p|img
_QsHtml = Regex.Replace(_QsHtml, @"<\/?(?!a)(?!p)(?!img)\w*\b[^>]*>","", RegexOptions.Multiline);
I would like to apply ragex for only table row (td). I have tried following regex but not matched.
<\/?td(?!a)(?!p)(?!img)\w*\b[^>]*td>