Re: Re: Regular Expression Backreference in subpattern.
| From: | Shiplu | Date: | Sat, 27 Sep 2008 22:28:10 +0000 |
| Subject: | Re: Re: Regular Expression Backreference in subpattern. | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-281059@lists.php.net to get a copy of this message | ||
Sorry The previous code was wrong,
Its the correct version,
$x = "a b;c d;e f;";
preg_match('/(?P<keys>\w) (?P<values>\w)/',$x,$m);
print_r($m);
Now I am using backrefrence \1 in in ?P option like (?P<\1>\d+).
and I got the error.
--
Blog: http://talk.cmyweb.net/
Follow me: http://twitter.com/shiplu
Stop Top Posting.