better regex for files