Modified regex search in getFiles().