Removing all <tr> tag

From: Date: Thu, 06 Jan 2005 10:05:40 +0000
Subject: Removing all <tr> tag
Groups: php.general 
Request: Send a blank email to php-general+get-205718@lists.php.net to get a copy of this message
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)

« previous php.general (#205718) next »