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

Re: regrepeat()

Thread Previous | Thread Next
Karl Williamson
December 31, 2017 23:21
Re: regrepeat()
Message ID:
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 =>

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 Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About