note 83677 added to function.preg-match
| From: | phpnoob at example dot com | Date: | Sat, 07 Jun 2008 04:47:21 +0000 |
| Subject: | note 83677 added to function.preg-match | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-140200@lists.php.net to get a copy of this message | ||
Example #4 Using named subpattern doesn't work.
Had to add a 'P' after each question mark.
preg_match('/(?P<name>\w+): (?P<digit>\d+)/', $str, $matches);
----
Server IP: 24.244.141.3
Probable Submitter: 24.231.38.72
----
Manual Page -- http://www.php.net/manual/en/function.preg-match.php
Edit -- https://master.php.net/note/edit/83677
Del: integrated -- https://master.php.net/note/delete/83677/integrated
Del: useless -- https://master.php.net/note/delete/83677/useless
Del: bad code -- https://master.php.net/note/delete/83677/bad+code
Del: spam -- https://master.php.net/note/delete/83677/spam
Del: non-english -- https://master.php.net/note/delete/83677/non-english
Del: in docs -- https://master.php.net/note/delete/83677/in+docs
Del: other reasons-- https://master.php.net/note/delete/83677
Reject -- https://master.php.net/note/reject/83677
Search -- https://master.php.net/manage/user-notes.php