RE: [PHP] Strip (i.e. remove!!!!) META tags from html file

From: Date: Wed, 13 Dec 2000 12:42:21 +0000
Subject: RE: [PHP] Strip (i.e. remove!!!!) META tags from html file
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-30088@lists.php.net to get a copy of this message
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. Hope I made myself more clear now! Today it's not my day ;-) Yoeri. Hi phpees! I want to get rid of the meta tags in the html file, now I do it like this: $string = implode(file("test.html"," ")); echo ereg_replace (".*"."<META"."(.*)".">".".*", " ", $string); But this doesn't work apparently! Anybody a clue on how to make it happen? kr, Yoeri. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#30088) next »