note 47266 deleted from ref.regex by nlopess

From: Date: Mon, 12 Jun 2006 21:43:35 +0000
Subject: note 47266 deleted from ref.regex by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-114282@lists.php.net to get a copy of this message
Note Submitter: ---- for exclude a string you can use the PCRE extension '(?(?=^(the_only_string_you_dont_want_to_match)$)^$|.*)' it's a conditional assertion it does that: if(match(string)) test string with ^$ else test string with .*

« previous php.notes (#114282) next »