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

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

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

Post by Debugger » Thu Jan 10, 2019 8:39 pm

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: 149
Joined: Sat Oct 27, 2018 11:33 am

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

Post by vanisk » Thu Jan 10, 2019 9:04 pm

I'm still learning regex.

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

something like this will work! (I guess)

Debugger
Posts: 530
Joined: Thu Jan 26, 2017 11:56 am

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

Post by Debugger » Thu Jan 10, 2019 9:42 pm

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: 149
Joined: Sat Oct 27, 2018 11:33 am

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

Post by vanisk » Thu Jan 10, 2019 10:11 pm

For Testing purposes, I created sample folders and ran

regex:^[E-Z]:\\FB\s
regex_FB.jpg


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

regex_FB with Not.jpg
You do not have the required permissions to view the files attached to this post.

Debugger
Posts: 530
Joined: Thu Jan 26, 2017 11:56 am

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

Post by Debugger » Fri Jan 11, 2019 8:03 am

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 » Mon Mar 04, 2019 4:57 pm

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: 149
Joined: Sat Oct 27, 2018 11:33 am

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

Post by vanisk » Mon Mar 04, 2019 5:16 pm

@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
You do not have the required permissions to view the files attached to this post.

void
Site Admin
Posts: 4894
Joined: Fri Oct 16, 2009 11:31 pm

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

Post by void » Tue Mar 05, 2019 11:01 am

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

void
Site Admin
Posts: 4894
Joined: Fri Oct 16, 2009 11:31 pm

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

Post by void » Tue Mar 05, 2019 1:05 pm

And if you want to exclude the folders themselves:

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

Post Reply