develooper Front page | perl.golf | Postings from January 2007

Re: simple golf for fun

Thread Previous | Thread Next
From:
Juho Snellman
Date:
January 16, 2007 16:30
Subject:
Re: simple golf for fun
Message ID:
878xg2y9sx.fsf@vasara.proghammer.com
Phil Carmody <thefatphil@yahoo.co.uk> writes:
> -p0 s/^((.*)(.*)
> (?=\2.\3
> |$))*$//

Assuming the last line is also newline-terminated:

-n0 a//^((.*)(.*
)(?=\2.\3|$))*$/

-- 
Juho Snellman


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