note 84344 added to function.preg-match

From: Date: Thu, 10 Jul 2008 01:12:02 +0000
Subject: note 84344 added to function.preg-match
Groups: php.notes 
Request: Send a blank email to php-notes+get-141340@lists.php.net to get a copy of this message
The named subpattern example above is incorrect. Instead of preg_match('/(?<name>\w+): (?<digit>\d+)/', $str, $matches); It should be preg_match('/(?P<name>\w+): (?P<digit>\d+)/', $str, $matches); ---- Server IP: 209.41.74.194 Probable Submitter: 204.176.49.45 ---- Manual Page -- http://www.php.net/manual/en/function.preg-match.php Edit -- https://master.php.net/note/edit/84344 Del: integrated -- https://master.php.net/note/delete/84344/integrated Del: useless -- https://master.php.net/note/delete/84344/useless Del: bad code -- https://master.php.net/note/delete/84344/bad+code Del: spam -- https://master.php.net/note/delete/84344/spam Del: non-english -- https://master.php.net/note/delete/84344/non-english Del: in docs -- https://master.php.net/note/delete/84344/in+docs Del: other reasons-- https://master.php.net/note/delete/84344 Reject -- https://master.php.net/note/reject/84344 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#141340) next »