I managed to write this regular expression for getting the inner html from a td
tag,
<td[^>]*>(.*?)<\/td>
It is working fine. Except, neglecting the td tag in the matching. I just want to get the innerHTML
, not the outerHTML
. you can find a demo for my problem here.
Can anyone help me to get text in between the td
tag?
P.S I am manipulating a string here not a html element.