Page 1 of 1

Include & Exclude filtering Simultaneously?

PostPosted: Thu Jun 30, 2022 8:22 am
by RajK2005
Hello

Is there a way I can use Filters (12) to include only files that contain certain text but also exclude certain other text?

For example:

A1.jpg
A2.jpg
AB.jpg
AC.jpg
BC.jpg
CD.Jpg

I want to include all files that contain A but doesn't contain B.

*A* would show: A1, A2, AB, AC

* !*B* would show A1, A2, AC, CD.

I want to combine these two so the result is: A1, A2 & AC.

I don't have and can't afford commercial license so the option of name.indexOf('A') !== -1 or any other Javascript renaming wouldn't work for me.

Any help is greatly appreciated. Thank you..

Filters(12) Multiple Masks are space separated

PostPosted: Thu Jun 30, 2022 9:43 am
by Luuk
The Filters(12) "Mask" use a space to separate multiple file-specs, so like... *A* !*B*
To put spaces inside a file-spec, it needs a checkmark for RegEx, so then more like... ^(?!.*B.*).*A.*

Re: Include & Exclude filtering Simultaneously?

PostPosted: Tue Jul 19, 2022 9:37 am
by Admin
Hi, the latest version now supports quotes (") for filters (12) also for non-regex to handle filters with spaces.
https://www.bulkrenameutility.co.uk/Download.php

Re: Filters(12) Multiple Masks are space separated

PostPosted: Fri Jul 22, 2022 10:47 am
by RajK2005
Luuk wrote:The Filters(12) "Mask" use a space to separate multiple file-specs, so like... *A* !*B*
To put spaces inside a file-spec, it needs a checkmark for RegEx, so then more like... ^(?!.*B.*).*A.*



Thank you very much. It worked. I was falsely assuming you need * !*B* to exclude B when you only need !*B*