Don't ask how I come up with these. Just bear with me. /abc(?#comment)+/ is a source of confusion. What should it be? Does the + quantify (pointlessly) the comment? Or the "c"? Which does Perl do?
Neither. It quantifies the abc as a whole. If you don't think this is a bug, then let me know; otherwise, P5P is going to hear from me. Probably with a patch, too.
_____________________________________________________
Jeff[japhy]Pinyan:
Perl,
regex,
and perl
hacker, who'd like a job (NYC-area)
s++=END;++y(;-P)}y js++=;shajsj<++y(p-q)}?print:??;
|
---|
Replies are listed 'Best First'. | |
---|---|
(tye)Re: Yet another regex bug.
by tye (Sage) on Nov 12, 2002 at 05:32 UTC | |
Re: Yet another regex bug.
by VSarkiss (Monsignor) on Nov 11, 2002 at 22:55 UTC | |
by hossman (Prior) on Nov 12, 2002 at 03:11 UTC | |
by VSarkiss (Monsignor) on Nov 12, 2002 at 03:33 UTC | |
Re: Yet another regex bug.
by particle (Vicar) on Nov 11, 2002 at 22:36 UTC | |
by theorbtwo (Prior) on Nov 12, 2002 at 05:59 UTC | |
Re: Yet another regex bug.
by elusion (Curate) on Nov 11, 2002 at 23:29 UTC | |
Re: Yet another regex bug.
by sauoq (Abbot) on Nov 11, 2002 at 23:11 UTC |
Back to
Meditations