note 55421 deleted from function.preg-grep by tularis

From: Date: Tue, 05 Jun 2007 05:57:00 +0000
Subject: note 55421 deleted from function.preg-grep by tularis
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-127207@lists.php.net to get a copy of this message
Note Submitter: ak85 at yandex dot ru ---- If U wanna find substring without word "BADWORD" U can use this expression: /((?:(?!BADWORD).)*)/s For example: preg_match_all('/<b>((?:(?!</b>).)*)</b>/is',$string,$matches); // U can find at the $matches substrings of $string between '<b>' and '</b>' without the same tag '</b>' // Was found at O'Reilly Rerl Cookbook Russian Edition 2001

« previous php.notes (#127207) next »