I have a piece of html code like the following one:
<td width="24%"><b>Something</b></td>
<td width="1%"></td>
<td width="46%" align="center">
<p><b>
needed
value</b></p>
</td>
<td width="28%" align="center">
</td>
</tr>
What is a good regex pattern to extract the first text node (not tags but the text inside) after the word Something
I mean I want to extract
needed
value
and nothing more.
I cant figure out a working regex pattern in php.
EDIT: I am not parsing whole html document but few lines of it so all I want is to do it using Regex and no HTML parsers.