Hi WB,
> Hi i need to strip out the <html> up to the <body> tag. > preg_replace( "/<html(.*)body(.*)>" , " " , $body ); try this: preg_replace( "/<html>[^<body>]*<body[^>]*>/" , " " , $body ); -- Jimmy ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Your mind is like parachute. It works best when it is open. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]