main(i,s,a,b){gets(s);for(gets(a);b=memmem(a,90,s,i);)printf("%.*s[%.*s]%s\n",b-a,a,i++,s,b+i);}
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page