Re: Handling Perl regexes

2001-07-15 Thread Jeff 'japhy' Pinyan
On Jul 15, Jeff 'japhy' Pinyan said: >On Jul 15, Luca Veraldi said: > >>qr{(?>([\(\[\{])(?:(?>[^\(\)\[\]\{\}]*)|(??{$re}))*(?(?{$1 eq "("})\)|(?(?{$1 eq >"["})\]|\})))}ox; > >That looks pretty solid to me, except that it's very stingy in what it >allows to be inside balanced parts. Err, nev

Re: Handling Perl regexes

2001-07-15 Thread Jeff 'japhy' Pinyan
On Jul 15, Luca Veraldi said: >I'm a Computer-Science student and I'm reading a book about Perl, >Programming Perl III ed. published by O'Reilly. I find regular >expressions very interesting and I tried to use a regex analyzed in the >book, the one to check if a string is ()-balanced. I rewrote i

Handling Perl regexes

2001-07-15 Thread Luca Veraldi
Dear Sirs, I hope you can help me understand the following facts...   I'm a Computer-Science student and I'm reading a book about Perl, Programming Perl III ed. published by O'Reilly. I find regular expressions very interesting and I tried to use a regex analyzed in the book, the one to chec