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

General discussion related to "Everything".
Post Reply
Debugger
Posts: 630
Joined: Thu Jan 26, 2017 11:56 am

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

Post 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 Открытки
vanisk
Posts: 152
Joined: Sat Oct 27, 2018 11:33 am

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

Post by vanisk »

I'm still learning regex.

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

something like this will work! (I guess)
Debugger
Posts: 630
Joined: Thu Jan 26, 2017 11:56 am

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

Post 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.
vanisk
Posts: 152
Joined: Sat Oct 27, 2018 11:33 am

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

Post 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 7217 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 7217 times
Debugger
Posts: 630
Joined: Thu Jan 26, 2017 11:56 am

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

Post by Debugger »

RELULAR EXPRESSION TOTALLY INCORRECT. :x

See screenshot:

https://i.postimg.cc/v8zkDVQB/Screen-Sh ... -01-AM.jpg
collinchaffin
Posts: 24
Joined: Thu Feb 02, 2017 9:42 pm

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

Post 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.
vanisk
Posts: 152
Joined: Sat Oct 27, 2018 11:33 am

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

Post 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 7185 times
void
Developer
Posts: 16897
Joined: Fri Oct 16, 2009 11:31 pm

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

Post by void »

Please try searching for:
regex:"^[E-Z]:\\FB (?!(Listy\\|Postcrossing 312\\|Numizmatyka\\|Открытки\\))"
void
Developer
Posts: 16897
Joined: Fri Oct 16, 2009 11:31 pm

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

Post by void »

And if you want to exclude the folders themselves:

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