strip from <html to closing body tag

From: Date: Mon, 07 Jan 2002 09:09:13 +0000
Subject: strip from <html to closing body tag
Groups: php.general 
Request: Send a blank email to php-general+get-79669@lists.php.net to get a copy of this message
Hi, Hi i need to strip out the <html> up to the <body> tag. For some reason, my function,
        preg_replace( "/<html(.*)body(.*)>" , " " , $body );
does not work. Ok I am not really brilliant at regular expressions ... Help? Jay

« previous php.general (#79669) next »