Modified regex to recognize filenames as given in steps