In response to Phil Carmody <[EMAIL PROTECTED]> saying:
> > The simple version of the task is to verify that each line of a file is the
> > insertion of one character somewhere (maybe at the start or the end) into
> > the prior line.

--- Ton Hospel <[EMAIL PROTECTED]> wrote:
<<<

-p0 $_ x=/^((.*)(.*)
(?=\2.\3
|$))*$/

>>>

Nice indeed. But would this count as a -4 Magoo?

-p0 s/^((.*)(.*)
(?=\2.\3
|$))*$//


Phil



()  ASCII ribbon campaign      ()    Hopeless ribbon campaign
/\    against HTML mail        /\  against gratuitous bloodshed

[stolen with permission from Daniel B. Cristofani]


 
____________________________________________________________________________________
8:00? 8:25? 8:40? Find a flick in no time 
with the Yahoo! Search movie showtime shortcut.
http://tools.search.yahoo.com/shortcuts/#news

Reply via email to