Finding partial name duplicates

Discussion related to "Everything" 1.5 Alpha.
Post Reply
harryray2
Posts: 1104
Joined: Sat Oct 15, 2016 9:56 am

Finding partial name duplicates

Post by harryray2 »

When searching for name duplicates I sometimes have to find just a part of the name.

For example with imtranslator_translator_dictionary_tts-16.7-fx.xpi
I would just like to find if the imtranslator_translator_dictionary part of the name has been duplicated (same file name, different version number)

Is this possible?

thanks.
therube
Posts: 5003
Joined: Thu Sep 03, 2009 6:48 pm

Re: Finding partial name duplicates

Post by therube »

Sounds something like, ignore: fuction (RFE).
(& from "ancient" times ;-), seg$(), How to search dupes in the first X characters of the name?)
void
Developer
Posts: 16897
Joined: Fri Oct 16, 2009 11:31 pm

Re: Finding partial name duplicates

Post by void »

Please try the following search:

regex:^(.*)-.*$ dupe:regmatch1

Files with the same text matched inside (.*) are shown in the results.
harryray2
Posts: 1104
Joined: Sat Oct 15, 2016 9:56 am

Re: Finding partial name duplicates

Post by harryray2 »

Again, just noticed this reply.
regex:^(.*)-.*$ dupe:regmatch1

Files with the same text matched inside (.*) are shown in the results
Apologies, I'm being dense..Where would the text go?
void
Developer
Posts: 16897
Joined: Fri Oct 16, 2009 11:31 pm

Re: Finding partial name duplicates

Post by void »

If you would like to view the captured regex text, please add the Regular expression match 1 column:


regex:^(.*)-.*$ dupe:regmatch1 addcolumn:regmatch1
harryray2
Posts: 1104
Joined: Sat Oct 15, 2016 9:56 am

Re: Finding partial name duplicates

Post by harryray2 »

Thanks David, is this correct?

regex:^(.*)-.*$ dupe:regmatch1 addcolumn:regmatch1 imtra
void
Developer
Posts: 16897
Joined: Fri Oct 16, 2009 11:31 pm

Re: Finding partial name duplicates

Post by void »

Regex is being greedy with: -

Please try:

regex:^([^-]*)-.*$ dupe:regmatch1 addcolumn:regmatch1 imtra
harryray2
Posts: 1104
Joined: Sat Oct 15, 2016 9:56 am

Re: Finding partial name duplicates

Post by harryray2 »

That doesn't seem to work, it shows all results with imtra in, rather than just the duplicates.

But, regex:^(.*)-.*$ dupe:regmatch1 addcolumn:regmatch1 imtra, does seem to work, I'll experiment further.
Post Reply