Front page | perl.perl5.porters |
Postings from March 2013
Re: Is this a /^*/ bug?
Thread Previous
|
Thread Next
From:
Tom Christiansen
Date:
March 26, 2013 11:26
Subject:
Re: Is this a /^*/ bug?
Message ID:
25410.1364297058@chthon
demerphq <demerphq@gmail.com> wrote on Tue, 26 Mar 2013 11:11:57 BST:
>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.
That's exactly what I eventually arrived at thinking, too.
--tom
Thread Previous
|
Thread Next