Change re match to search to enable exclude file pattern search