Author: Philip Hazel Date: To: jonetsu CC: pcre-dev Subject: Re: [pcre-dev] '-g mode' return code at end of loop
On Fri, 24 Feb 2012, jonetsu wrote:
> pcredemo -g, upon a normal run, reports:
> ./pcredemo -g "rate (?'rate'\d+)Kbit"
> "quantum 12500 rate 300000Kbit ceil 540000Kbit"
> Match succeeded at offset 14
> 0: rate 300000Kbit
> 1: 300000
> Named substrings
> (1) rate: 300000
> Matching error -24
It does not do that for me. I compiled the version from 8.30, and it
Match succeeded at offset 14
0: rate 300000Kbit
(1) rate: 300000
with a return code of 0. There is clearly some mystery here as to why
your version of the code is not right. If you email your pcredemo.c to
me (NOT to the list!) I will diff it to try shed some light.
This message was posted to the following mailing lists: