tags:

views:

134

answers:

1
<table width="100%" cellspacing="0" cellpadding="0" border="0" id="Table4">
  <tbody>
    <tr>
      <td valign="top" class="tx-strong-dgrey">
        <a class="anc-noul" href="http://www.example.com/catalog/proddetail.asp?logon=&amp;amp;langid=EN&amp;amp;sku_id=0665000FS10129471&amp;amp;catid=25653"&gt;
          Apple 8GB 3rd Generation iPod Touch</a></td>
    </tr>
    <tr>
      <td valign="top" class="element-spacer"/>
    </tr>
    <tr>
      <td valign="top" class="tx-normal-grey">
        Product detail
        <a href="http://www.example.com/catalog/proddetail.asp?logon=&amp;amp;langid=EN&amp;amp;sku_id=0665000FS10129471&amp;amp;catid=25653"&gt;
          More Info</a></td>
    </tr>
    <tr>
      <td valign="top" class="element-spacer"/>
    </tr>
    <tr>
      <td valign="top" class="tx-normal-red">
        <span class="tx-strong-dgrey">Price:</span>
        $189.99</td>
    </tr>
    <tr>
      <td valign="top">You save: $9.00 after instant savings</td>
    </tr>
    <tr>
      <td valign="top" class="element-spacer"/>
    </tr>
    <tr>
      <td valign="top" class="tx-normal-grey">
        <a href="http://www.example.com/catalog/subclass.asp?catid=25653&amp;amp;logon=&amp;amp;langid=EN"&gt;
          View similar products</a>  
        <a href="http://www.example.com/catalog/mfr.asp?man=Apple&amp;amp;catid=19&amp;amp;logon=&amp;amp;langid=EN"&gt;
          View similar products with same brand</a>
      </td></tr>
    <tr>
      <td valign="top" class="element-spacer"/>
    </tr>
  </tbody>
</table>

I want to be able to get the $189.99.

echo $ret[0]->find('tr', 4)->plaintext;

This outputs: 'Price: $189.99'

I just need $189.99, not 'Price:'

+2  A: 
$exp = explode(":", $ret[0]->find('tr', 4)->plaintext);
$price =$exp[1];
vsr
That does it. You guys are great.
manny