align by common substring by jbb

a="";b=0..99;$<.map{|l|$><<a=" "*b.max_by{|i|b.count{|z|a[z]==l[z-i]}}+l}

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

download

return to the top page