check file extension with a regex