replace last occurrence FIXED by pooq

File standardInput readLines map(a,b:=a split;c:=(d:=b last)reverseFindSeq(b first);writeln(if(c,d slice(0,c).. b at(1).. d slice(c+b at(0)size),d)))

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

download

return to the top page