Re: [pcre-dev] '-g mode' return code at end of loop

Etusivu
Poista viesti
Lähettäjä: Philip Hazel
Päiväys:  
Vastaanottaja: jonetsu
Kopio: pcre-dev
Aihe: Re: [pcre-dev] '-g mode' return code at end of loop
On Fri, 24 Feb 2012, jonetsu wrote:

> Hello,
>
> 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
gives this:

Match succeeded at offset 14
0: rate 300000Kbit
1: 300000
Named substrings
(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.

Philip

--
Philip Hazel