preg_match help!
Posted: Tue Jun 09, 2009 11:26 pm
If I have a variable like this:
and I want to remove the one in red text so that the new variable would contain
How could I possibly do that.??.. I think a preg_match can possibly make it, but I don't know the code and
I dont know that much about preg_match.... Please help me with this... thanks!
Code: Select all
$html = '<td>
<span onmouseover="_tipon(this)" onmouseout="_tipoff()">
<span class="google-src-text" style="direction: ltr; text-align: left">
1206732400OWYJ
</span>
1206732400OWYJ
</span></td>';
Code: Select all
$html = '<td>
<span onmouseover="_tipon(this)" onmouseout="_tipoff()">
1206732400OWYJ
</span></td>';
I dont know that much about preg_match.... Please help me with this... thanks!