note 99088 added to regexp.reference.internal-options
| From: | lodemichels at gmail dot com | Date: | Tue, 27 Jul 2010 06:02:32 +0000 |
| Subject: | note 99088 added to regexp.reference.internal-options | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-171158@lists.php.net to get a copy of this message | ||
@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 (:)
----
Server IP: 83.137.20.135
Probable Submitter: 94.210.33.17
----
Manual Page -- http://www.php.net/manual/en/regexp.reference.internal-options.php
Edit -- https://master.php.net/note/edit/99088
Del: integrated -- https://master.php.net/note/delete/99088/integrated
Del: useless -- https://master.php.net/note/delete/99088/useless
Del: bad code -- https://master.php.net/note/delete/99088/bad+code
Del: spam -- https://master.php.net/note/delete/99088/spam
Del: non-english -- https://master.php.net/note/delete/99088/non-english
Del: in docs -- https://master.php.net/note/delete/99088/in+docs
Del: other reasons-- https://master.php.net/note/delete/99088
Reject -- https://master.php.net/note/reject/99088
Search -- https://master.php.net/manage/user-notes.php