Flexible file naming through regex