in reply to Re^2: filter the files in a folder on the basis of some variable present in them
in thread filter the files in a folder on the basis of some variable present in them

A few problems with your code:

I also recommend precompiling the regexes before use via the qr// operator. Try to use those clues (and the help from Discipulus) to modify your code.

  • Comment on Re^3: filter the files in a folder on the basis of some variable present in them