RE: [PHP] removing html...

From: Date: Sat, 27 Jul 2002 15:48:20 +0000
Subject: RE: [PHP] removing html...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-109979@lists.php.net to get a copy of this message
> I have search around on google/php.net to try and find a way to remove > <body>, everything above ,</body> and everything below it in a html page. FYI on the two methods I suggested: preg_match("/<body>(.*)<\/body>/i",$html_text,$matches); eregi("<body>(.*)</body>",$html_text,$matches); Preg vs. Ereg name total time average iteration time 100% Preg Method 59ms 5.906E-005 339% Ereg Method 200ms 0.00020036 Each method was called 10,000 times. ---John Holmes...

« previous php.general (#109979) next »