On 9/27/08, Richard Lynch <[EMAIL PROTECTED]> wrote:
> Not sure what you think the (?P is doing, but it looks very suspicious to
> me...
>
> I'm no PCRE expert though...
>
> Try this:
>
> '|\\s*charge\\s*\\s*\\s*([0-9]*)\\s*|'
>
> \\s allows for whitespace
>
> If you only want ones that HAVE
e 0-9] bit into +
From: Shiplu [EMAIL PROTECTED]
Sent: Saturday, September 27, 2008 10:24 AM
To: PHP General
Subject: [PHP] Regular Expression Backreference in subpattern.
The string is "charge100".
I want and array( "charge"=>100).
I am using t
The string is "charge100".
I want and array( "charge"=>100).
I am using this regular expression,
'/([^<]+)<\/td>(?P<\1>\d+)<\/td>/'.
But its not working..
I get this error.,
PHP Warning: preg_match(): Compilation failed: syntax error after (?P
at offset 25 in E:\src\php\WebEngine\- on line 4
a
3 matches
Mail list logo