Which just means it doesn't find any of the patterns you are looking for. If I look at your test data, the patterns all look like "EN-1000-0002-1", while the files have ids like "EN--1000-0002-1". a remarkably obvious difference. No wonder the script doesn't find anything