replace last occurrence FIXED by tails (nn)

f;c[];main(p,a,b){for(p=a;strstr(++p,a)||~scanf(f="%s%s%s\n",a,b,p=c,printf(f+(c!=p?*(p?:"")=0:4),c,b,--p+strlen(a))););}

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

download

return to the top page