Possible Duplicate:
RegEx match open tags except XHTML self-contained tags
What would be the best regular expression to extract only text from tags? If I have for example this kind of html markup
<tr class="classo">
<td>text1</td>
<td class="dot">text2 </td>
<td>text3</td>
<td class="dot"> text4</td>
<td class="dot">text4</td>
</tr>
Number of td tags is not fixed, also some of them will have class attribute, but I'm only interesting in getting the text from inside td tag