note 20798 deleted from function.preg-match by sniper

From: Date: Fri, 17 Oct 2003 03:28:45 +0000
Subject: note 20798 deleted from function.preg-match by sniper
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-58731@lists.php.net to get a copy of this message
Note Submitter: monte@ispi.net ---- It is possible to do negative lookbehinds with PCRE (perl 5+), but only fixed length. preg_match('/(?<!AB)C/',$foo,$match); This will match 'C' only if NOT preceeded by 'AB'. 'AB' must be a fixed length string, it cannot be an expression.

« previous php.notes (#58731) next »