note 26232 deleted from function.preg-replace by didou

From: Date: Sat, 17 May 2003 16:35:12 +0000
Subject: note 26232 deleted from function.preg-replace by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-48177@lists.php.net to get a copy of this message
Note Submitter: nobody@none.com The above example from my@mail doesnt seem to work. The next one does work though! $text = preg_replace("/(<.*?)(=)(?!\"|\')(.*?)(>|[[:space:]])/is", "\\1\\2\"\\3\"\\4",$text); You forgot to include the < within the search and it did not see the single quotation. Cheers Yo!

« previous php.notes (#48177) next »