[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [FWP] IP address regex golf



Uri Guttman wrote:
> 
> >>>>> "RD" == Rick Delaney <rick.delaney@home.com> writes:
> 
>   RD>     4==grep $_<256,/\G(\d+)(?:\.|\z)/g;
> 
> highly amusing and not inefficient it would seem.

Except it's wrong as has been pointed out.  One way to fix it:

    y/.//==3&&4==grep$_<256,/\G(\d+)(?:\.|\z)/g;

-- 
Rick Delaney
rick.delaney@home.com

==== Want to unsubscribe from Fun With Perl?  Well, if you insist...
==== Send email to <fwp-request@technofile.org> with message _body_
====   unsubscribe