そういえば
filename = sub(file,"\\","");
std.regexp.RegExpException: no character past '\'
これってなんで例外でるんだ?