Page 1 of 1

How do exclude some of the path names are looking for?

Posted: Thu Jan 10, 2019 8:39 pm
by Debugger
How do exclude some of the path names are looking for?

Initial name:FB
[E-Z]:\\FB\s

Include:
FB 1
FB Cars
FB 7 Sierpień
etc.


Ignored names: Numizmatyka Listy Postcrossing Открытки and other
FB Listy
FB Postcrossing 312
FB Numizmatyka

FB Открытки

Re: How do exclude some of the path names are looking for?

Posted: Thu Jan 10, 2019 9:04 pm
by vanisk
I'm still learning regex.

[E-Z]:\\FB\s<!Listy !"Postcrossing 312" !Numizmatyka !Открытки>

something like this will work! (I guess)

Re: How do exclude some of the path names are looking for?

Posted: Thu Jan 10, 2019 9:42 pm
by Debugger
Unfortunately, this does not work for PATH name combinations.
This must include all paths with the initial name "FB" as well as exclude selected names with the initial name "FB".
include everything with the initial name "FB" (search for everything) except selected names.

Re: How do exclude some of the path names are looking for?

Posted: Thu Jan 10, 2019 10:11 pm
by vanisk
For Testing purposes, I created sample folders and ran

regex:^[E-Z]:\\FB\s
regex_FB.jpg
regex_FB.jpg (45.47 KiB) Viewed 6179 times


After adding exclude list
regex:^[E-Z]:\\FB\s<!Listy !"Postcrossing 312" !Numizmatyka !Открытки>

regex_FB with Not.jpg
regex_FB with Not.jpg (41.15 KiB) Viewed 6179 times

Re: How do exclude some of the path names are looking for?

Posted: Fri Jan 11, 2019 8:03 am
by Debugger
RELULAR EXPRESSION TOTALLY INCORRECT. :x

See screenshot:

https://i.postimg.cc/v8zkDVQB/Screen-Sh ... -01-AM.jpg

Re: How do exclude some of the path names are looking for?

Posted: Mon Mar 04, 2019 4:57 pm
by collinchaffin
Then perhaps write the regex yourself because it also works for me.

First of all, you do NOT even have the regex he posted above correctly typed in your screenshot, and I see NUMEROUS questions posted from you over the last couple months then accosting either this tool author who has graciously provided you this FREE tool (that you clearly are struggling to operate) or worse yet the very people trying to come to your aid and help you understand.

You posted in another thread that the author was flat out wrong about something as widely known as path lengths without clearly taking the time to read his actual answer of "the SHELL is limited....".

I just fail to understand why you would troll the void forums posting questions to then get upset and argue with every single answer (I have yet to see one you did NOT argue with).

Regex works in this case, as stated above.

Re: How do exclude some of the path names are looking for?

Posted: Mon Mar 04, 2019 5:16 pm
by vanisk
@collinchaffin, Thanks for the reply.

Actually my regex is kinda wrong, as it DID exclude the mentioned folder, BUT it listed files from the excluded folder. Thats why i didn't reply (as i don't have a clue, whats wrong or how to modify the regex)
regex_exclude_folder_everything.jpg
regex_exclude_folder_everything.jpg (91.64 KiB) Viewed 6147 times

Re: How do exclude some of the path names are looking for?

Posted: Tue Mar 05, 2019 11:01 am
by void
Please try searching for:
regex:"^[E-Z]:\\FB (?!(Listy\\|Postcrossing 312\\|Numizmatyka\\|Открытки\\))"

Re: How do exclude some of the path names are looking for?

Posted: Tue Mar 05, 2019 1:05 pm
by void
And if you want to exclude the folders themselves:

regex:"^[E-Z]:\\FB (?!Listy(\\|$)|Postcrossing 312(\\|$)|Numizmatyka(\\|$)|Открытки(\\|$))"