Modify regex for file extension matching