regex for format, new paths