develooper Front page | perl.perl5.porters | Postings from July 2013

Re: [perl #119075] Regex inconsistency

Thread Previous | Thread Next
From:
demerphq
Date:
July 29, 2013 17:21
Subject:
Re: [perl #119075] Regex inconsistency
Message ID:
CANgJU+WecJ8boS5yP9RQDODx9stgCpcLOAGiHG_ytm_5TuSy0w@mail.gmail.com
On 29 July 2013 18:34, Philip Hazel <perlbug-followup@perl.org> wrote:
> # New Ticket Created by  Philip Hazel
> # Please include the string:  [perl #119075]
> # in the subject line of all future correspondence about this issue.
> # <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=119075 >
>
>
> This is a bug report for perl from ph10@quercite,
> generated with the help of perlbug 1.39 running under perl 5.18.0.
>
>
> -----------------------------------------------------------------
> [Please describe your issue here]
>
> $ perl -e '/a{0}?/'
> Quantifier follows nothing in regex; marked by <-- HERE in m/a{0}? <-- HERE /
> at -e line 1.
>
> I know this is a pathological case, but Perl used to accept it. It is
> quite happy as long as the quantifier is not zero.

More {0} => NOTHING fallout, but I *think* this is fixed already.

Yves


-- 
perl -Mre=debug -e "/just|another|perl|hacker/"

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About