Regexpr Next Input by 51b

x[99];char s[999];main(p,r){for(~open("a",0)||write(creat("a",-1),s,read(0,s,s));gets(s);puts(s))for(p=fopen("a","r");~fscanf(p," s/%[^/]/%[^/]/",x+2,x+6);regexec(r,s,1,x,0)||sprintf(s+*x,"%s",strcat(x+6,s+x[1])))regcomp(r,x+2,0);}

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

download

return to the top page