Removing all <tr> tag

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
  I have an html file containing a table. I applied
  eregi("<TR>.*</TR>",$contents,$temp) through my Php.I am getting 
  the output like this-
               <td>A</td><td>B</td></tr>
               <tr><td>C</td><td>D</td></tr> 
               <tr><td>E</td><td>F</td> 
But my expected output is -
             <td>A</td><td>B</td>
             <td>C</td><td>D</td>
             <td>E</td><td>F</td> 
 The code removing only the first and last <(/)tr>.
How to do it using eregi ? (or using any other regular expression function. I don't want to use any string replace function.)

Binav

 

 
______________ ______________ ______________ ______________
Sent via the WebMail system at softwareassociates.co.uk


 
                   
---
Scanned by MessageExchange.net (10:05:41 SPITFIRE)

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux