regex now gets file extension