Front page | perl.perl5.porters |
Postings from July 2009
Re: Regex inside regex
Thread Previous
|
Thread Next
From:
Abigail
Date:
July 25, 2009 09:21
Subject:
Re: Regex inside regex
Message ID:
20090725162157.GA14806@almanda
On Sat, Jul 25, 2009 at 11:07:00AM -0500, Craig A. Berry wrote:
> On Sat, Jul 25, 2009 at 10:13 AM, Bram<p5p@perl.wizbit.be> wrote:
> > Currently calling a regex inside a regex results in memory corruption in the
> > regex variable.
> >
> > This can result in: segmentation faults, out of memory errors, incorrect
> > values, ... meaning undefined/unexpected behaviour.
>
>
> > Is it possible to turn this into defined/expected behaviour?
> > For example by adding a panic/run time error/... when a regex is being
> > started when a regex is already running? (read: what should be done to
> > accomplish that?)
>
> I don't think we can simply disable a regex within a regex. Crazy as
> it sounds, it's apparently expected to work.
Perltodo disagrees:
A re-entrant regexp engine
This will allow the use of a regex from inside (?{ }), (??{ }) and
(?(?{ })|) constructs.
Abigail
Thread Previous
|
Thread Next