develooper Front page | perl.perl5.porters | Postings from December 2017

Re: regrepeat()

Thread Previous | Thread Next
From:
Karl Williamson
Date:
December 31, 2017 23:21
Subject:
Re: regrepeat()
Message ID:
84fecc34-73f2-3123-9db9-5a1a9ffaf92c@khwilliamson.com
On 12/31/2017 4:13 PM, Andy Lester wrote:
>> My question is, does this happen often enough in real life to justify the extra code?
> 
> I'd bet that the case of the object of the + being a single character is the most common use of +, starting with things like s/ +$//;
> 
> --
> Andy Lester => www.petdance.com
> 
> 

Yes, but the issue is in the strings it matches, are there a lot of 
spaces in a row?  Only in that case is there a noticeable speed up

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