note 83677 deleted from function.preg-match by felipe
| From: | felipe@php.net | Date: | Sat, 07 Jun 2008 18:16:32 +0000 |
| Subject: | note 83677 deleted from function.preg-match by felipe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-140207@lists.php.net to get a copy of this message | ||
Note Submitter: phpnoob at example dot com
----
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);