Update regex to match file and url