in reply to Best way to match a file.

I presume from your code that it matters to you where in the filename the string occurs? Or do you just want to match the string, regardless of where it occurs in the filename?