I have a List AvailableFileList which contains digital*.pdf,digital*.docx,digital*.csv, pricing*.pdf,pricing*.docx,pricing*.csv Files.
Now i have a directory which conatins many files around 1000 Files. i have to extract only those Files from here which has AvailableFileList strings i.e, anyfile which has written digital and either (.pdf/.docx /.csv.) or Pricing (.pdf/ .csv /.docx)
How can i do the same.
I have created a logic which is not working.