Re: Strip (i.e. remove!!!!) META tags from html file

From: Date: Thu, 14 Dec 2000 03:12:20 +0000
Subject: Re: Strip (i.e. remove!!!!) META tags from html file
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-30236@lists.php.net to get a copy of this message
Hi Yoeri: > Sorry folks, this mail was sent to soon, I meant I want to remove all text > between the meta tags and the meta tags included. The rest of the html file > should stay as it is. > .... > $string = implode(file("test.html"," ")); > echo ereg_replace > (".*"."<META"."(.*)".">".".*", " > ", $string); Perhaps this is what you're looking for: echo eregi_replace ("<META([^>]*)>", " ", $string) Enjoy, --Dan -- PHP scripts that make your job easier http://www.analysisandsolutions.com/code/ SQL Solution | Layout Solution | Form Solution T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y 4015 7 Ave, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409

« previous php.general (#30236) next »