Use regex for files