Regexpr Next Input by 51b

import std.cstream,std.stream,std.file,std.regexp;void main(){exists(\a)||write(\a,din.toString);foreach(char[]s;din){foreach(char[]t;new File(\a)){auto p=split(t.idup,"/");s=sub(s.idup,p[1],p[2]).dup;}dout.writeLine=s;}}

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

download

return to the top page