Find Files That Don't Match A String

Post any Bulk Rename Utility support requirements here. Open to all registered users.

Find Files That Don't Match A String

Postby DaveApple1 » Sat Dec 03, 2011 6:00 pm

I searched the forum several times but did not find an answer to this question. (Course I may have just used the wrong search terms so if this is a repost questions I apologize). I want to search a folder for files that don't match a specified string:
Example: (Find the files that don't have "Orange" in the file name)

Orange1apple
Orange2apple
Orange3apple
4apple
5apple
6apple

Should return:

4apple
5apple
6apple

So I can make the necessary changes. Is it possible to do this natively with BRU or do I need to use a REGEX code. I played around with the filter option but could not find a way to return non-matches. Thank you in advance.
DaveApple1
 
Posts: 2
Joined: Sat Dec 03, 2011 5:51 pm

Re: Find Files That Don't Match A String

Postby Glenn » Wed Dec 07, 2011 8:06 pm

Dave
Give this a try.
Go to the Selections (12) section of the BRU.
For the filter field put
* !*Orange*.*
Make sure you leave a space between the leading asterisk and the exclamation point

The first asterisk means show all files.
The !*Orange*.* means don't show any file containing the word Orange.
If you wanted to exclude only those beginning with Orange use !Orange*.*
Note that this has no asterisk between the exclamation point and the start of the word Orange.

You can have more than one type of exclusion in this field. Just separate each of them by a space.

After setting this you need to hit F5 or click in the file viewing area to refresh the file list.

This worked fine on my machine using the example files you gave.

Cheers,
Glenn
Glenn
 
Posts: 28
Joined: Fri Apr 14, 2006 4:53 pm
Location: Winnipeg, Canada


Return to BRU Support