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

Re: [FWP] IP address regex golf



>>>>> "RD" == Rick Delaney <rick.delaney@home.com> writes:

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

highly amusing and not inefficient it would seem. i never seem to think
about using \G. i should when i see repeated patterns.

this is a cool golf problem as it is real world, and offer many avenues
to explore. it would be interesting and educational to chart all the
paths this one problem has travelled. can anyone put together such a
list of solutions from longer to short and organized by theme? it could
be the basis for an interesting article or paper somewhere.

uri

-- 
Uri Guttman  ---------  uri@sysarch.com  ----------  http://www.sysarch.com
SYStems ARCHitecture, Software Engineering, Perl, Internet, UNIX Consulting
The Perl Books Page  -----------  http://www.sysarch.com/cgi-bin/perl_books
The Best Search Engine on the Net  ----------  http://www.northernlight.com

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