optional input for file name regex