note 41922 deleted from function.preg-replace by nlopess

From: Date: Tue, 27 Apr 2004 13:12:44 +0000
Subject: note 41922 deleted from function.preg-replace by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-68870@lists.php.net to get a copy of this message
Note Submitter: d.drury@gmx.net ---- preg_replace("'(?!<.*?)$string(?![^<>]*?>)'si", "REPLACED", $chunk); works to replace everything outside tags except if $string is < - the opening tag.

« previous php.notes (#68870) next »