note 2362 deleted from function.ereg-replace by jimw

From: Date: Fri, 02 Nov 2001 01:41:07 +0000
Subject: note 2362 deleted from function.ereg-replace by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-20171@lists.php.net to get a copy of this message
Just to repeat myself, it seems there is a function called preg_replace, which allows you to use Perl style pattern matching.<br>ex:<br><pre> $output = preg_replace("/<\/?(html|head|meta|title|body).*>/","",$rawHtml) ## Deletes certain html tags

« previous php.notes (#20171) next »