align by common substring by Shmiddty

for(a='';r=readline(b=i=0);print(a=Array(~b-i+2).join(' ')+r))for(;a&&!b;)b=~a.search(r.substr(i++,4))

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page