Re: [pcre-dev] Using pcre: the /g behaviour

2012-02-25 Thread Philip Hazel
On Sat, 25 Feb 2012, Giuseppe D'Angelo wrote: 1248556 pcre-8.30.tar.bz2  15520 Nov 24 2010 pcredemo.c What? The code is there for me. Line 187 onwards. It is certainly also in my copy of the tarball. Philip -- Philip Hazel-- ## List details at

Re: [pcre-dev] Using pcre: the /g behaviour

2012-02-24 Thread Philip Hazel
On Thu, 23 Feb 2012, jonetsu wrote: pcredemo segfaults when using the -g param, as in the following (cmd on a single line) : Thanks for the report. I will see if I can reproduce it on my 32-bit system. I have to admit that pcredemo.c hasn't been touched since November 2010, so it is quite

Re: [pcre-dev] Using pcre: the /g behaviour

2012-02-24 Thread Philip Hazel
On Thu, 23 Feb 2012, jonetsu wrote: /* Loop for second and subsequent matches */ for (;;) { [ snip ] // Added bit: (void)pcre_fullinfo( re, NULL, PCRE_INFO_NAMETABLE, name_table); // Back to original code: if (namecount = 0) printf(No named

Re: [pcre-dev] Using pcre: the /g behaviour

2012-02-24 Thread jonetsu
Le Vendredi, 24 Février 2012 17:24:40 + (GMT), Philip Hazel p...@hermes.cam.ac.uk a écrit : Which version of PCRE are you using? 1248556 pcre-8.30.tar.bz2 15520 Nov 24 2010 pcredemo.c From: ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/ (as per the web page) I've also

Re: [pcre-dev] Using pcre: the /g behaviour

2012-02-24 Thread Giuseppe D'Angelo
On 25 February 2012 01:30, jonetsu jone...@teksavvy.com wrote: Le Vendredi, 24 Février 2012 17:24:40 + (GMT), Philip Hazel p...@hermes.cam.ac.uk a écrit : Which version of PCRE are you using? 1248556 pcre-8.30.tar.bz2  15520 Nov 24 2010 pcredemo.c What? The code is there for me. Line

Re: [pcre-dev] Using pcre: the /g behaviour

2012-02-23 Thread Philip Hazel
On Wed, 22 Feb 2012, jonetsu wrote: But there's more than the rate to extract and this is where I haven't found how to duplicate the behaviour of continuing a search, when using pcredemo. pcredemo -g 1) How can the /g option be added to pcredemo ? pcredemo -g 2) In the case of the

Re: [pcre-dev] Using pcre: the /g behaviour

2012-02-23 Thread jonetsu
Le Mardi, 23 Février 2012 17:15:27 + (GMT), Philip Hazel p...@hermes.cam.ac.uk a écrit : pcredemo -g pcredemo segfaults when using the -g param, as in the following (cmd on a single line) : ./pcredemo -g rate (?'rate'\d+)Kbit|ceil (?'ceil'\d+)Kbit quantum 12500 rate 30Kbit ceil