develooper Front page | perl.perl5.porters | Postings from April 2014

[perl #114804] correction to documentation

Thread Next
From:
Karl Williamson via RT
Date:
April 13, 2014 21:02
Subject:
[perl #114804] correction to documentation
Message ID:
rt-4.0.18-25467-1397422923-762.114804-15-0@perl.org
David, 

What do you think of this wording>

On Thu Apr 03 03:24:24 2014, zefram@fysh.org wrote:
> Karl Williamson via RT wrote:
> >+We haven't come up with a definition for C<S{min,max}> which is easy to
> >+grasp and captures all the nuances correctly (patches welcome,
> >+L<perbug@perl.org|mailto:perbug@perl.org>),
> 
> /S{min,max}/ for min != max does behave as /S{min,max-1}S?/, unless
> the matching of S has side effects that make failing executions
> visible.  More precisely and completely, /S{min,max}/ is equivalent to
> /S{min}(?:S(?:S(?:...)?)?)?/, with max-min nested optional matches.
> 
> > =item C<S{min,max}?>
> 
> /S{min,max-1}?S??/ or /S{min}(?:S(?:S(?:...)??)??)??/.
> 
> -zefram
> 


-- 
Karl Williamson

---
via perlbug:  queue: perl5 status: open
https://rt.perl.org/Ticket/Display.html?id=114804

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