I need to find and delete all files on a computer that match a certain pattern. This needs to be a careful search because other files that do not match the pattern should not be included so that they are not deleted. The pattern is:
where "aa" is a two letter abbreviation and "n" is a number. This will only be part of the file name, but will always be the end of the file name before the extension. For example, if there is a file "foo.txt", there may be "foo (from Thearclink_in_1).txt" or "foo (from Thearclink_mi_1.txt" or "foo (from Thearclink_in_0.txt". I want the last 3 to be returned but not the first and certainly not anything else. Since this is a specific pattern, I do not think there will be any false positives, however it is important the original file is not returned.
I am using Windows 7 which uses a search I am not comfortable using. When I try searching for "(From thearclink_", I get a wide range of files that I do not want; I believe this is because of the opening parenthesis is being ignored so any file with the word "from" is being returned. I am not sure if regular expressions should be used, but even if so, I do not know how to use them in Windows search.
This will return thousands of files so I cannot feasibly go through the search results to determine if any files are included that should not be. Therefore, the search must be precise, returning no files that do not match correctly, like what happens when I search and files with the word "from" are returned.
Thanks in advance for any help or suggestions.