Front page | perl.perl5.porters |
Postings from March 2013
Re: Is this a /^*/ bug?
Thread Previous
|
Thread Next
From:
demerphq
Date:
March 26, 2013 10:12
Subject:
Re: Is this a /^*/ bug?
Message ID:
CANgJU+Vs+OrwV7xhdBzuMicrTkwnYP2GX+d94AW1N4EAKmgkQQ@mail.gmail.com
On 26 March 2013 11:01, Zefram <zefram@fysh.org> wrote:
> hv@crypt.org wrote:
>>That's exactly what we do now. The specially worded warning is "matches null
>>string many times in regex",
>
> There's no warning for /^?/.
I dont think there should be
?
is syntactic sugar for
(?:X|)
so
^?
means:
(?:^|)
and IMO at that point it is perfectly reasonable. Anything could be in
the second half of that alternation.
Yves
--
perl -Mre=debug -e "/just|another|perl|hacker/"
Thread Previous
|
Thread Next