note 99088 deleted from regexp.reference.internal-options by danbrown

From: Date: Fri, 30 Jul 2010 16:41:50 +0000
Subject: note 99088 deleted from regexp.reference.internal-options by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-171269@lists.php.net to get a copy of this message
Note Submitter: lodemichels at gmail dot com ---- @Mike: (?: denotes a Non-Capturing subpattern (?i: denotes the same with an internal option for the subpattern i, making it caseless. concider: (?:i[a-z])([a-z]+) the first subpattern is caseless and non-capturing, the second is capturing and case sensitive. ((?:i[a-z]+)) doesn't make sense! if you want to capture the match in the result, you shouldn't use a non-capturing subpattern. You would use: ((?i)[a-z]+) without the collon (:)

« previous php.notes (#171269) next »