Force exact matches doesn't work

Things you’d like to miss in the future...
Forum rules
You might want to read this if you're looking for priority service

:info: Please Include The Following Information
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: Use Your Profile Or Signature
We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: How To Attach Images
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
LittleBiG
Posts: 1848
Joined: 08 Apr 2011 12:57
Location: Win10x64

Force exact matches doesn't work

Post by LittleBiG »

The help file:
To force exact matches (as opposed to loose matches) you can quote a filter. If you state multiple filters then each filter that should be matched exactly should be quoted.
The reality:
To see the attached files, you need to log into the forum.

binocular222
Posts: 1424
Joined: 04 Nov 2008 05:35
Location: Win11, Win10, 100% Scaling

Re: Force exact matches doesn't work

Post by binocular222 »

You misunderstood the help file.
Quote is used to force exact match on space character, so:
"Read me" should not match Readme.txt
Read me (without quote) should match every file with "Read" and "me" in any position
I'm a casual coder using AHK language. All of my xys scripts:
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488

LittleBiG
Posts: 1848
Joined: 08 Apr 2011 12:57
Location: Win10x64

Re: Force exact matches doesn't work

Post by LittleBiG »

binocular222 wrote:You misunderstood the help file.
Quote is used to force exact match on space character, so:
"Read me" should not match Readme.txt
Read me (without quote) should match every file with "Read" and "me" in any position
I think you are not right. Read me without quote means *read me*. "read me" should mean the file called read me, without any extension.
Last edited by LittleBiG on 11 Nov 2013 11:34, edited 1 time in total.

armsys
Posts: 557
Joined: 10 Mar 2012 12:40
Location: Hong Kong

Re: Force exact matches doesn't work

Post by armsys »

binocular222's reply is factually correct.
But now we have a problem: How to exclude "This is a readme.txt*" from the search result?

Marco
Posts: 2354
Joined: 27 Jun 2011 15:20

Re: Force exact matches doesn't work

Post by Marco »

Regex:

Code: Select all

>^readme\.txt$
Last edited by Marco on 11 Nov 2013 11:40, edited 1 time in total.
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]

LittleBiG
Posts: 1848
Joined: 08 Apr 2011 12:57
Location: Win10x64

Re: Force exact matches doesn't work

Post by LittleBiG »

Maybe I am "wired" wrongly, but this is exactly in the help file. There is no mention about you wrote.
Matches

Loose matches are supported, i.e. wildcards are auto-added on both ends if no wildcards are passed with the pattern. For example, to show all items containing the letter "e" in the name simply state "e" as filter:

e -> show all files containing "e" in the name

To force exact matches (as opposed to loose matches) you can quote a filter. If you state multiple filters then each filter that should be matched exactly should be quoted.

"readme.txt"|"setup.txt" -> show only files readme.txt and setup.txt

binocular222
Posts: 1424
Joined: 04 Nov 2008 05:35
Location: Win11, Win10, 100% Scaling

Re: Force exact matches doesn't work

Post by binocular222 »

Read me without quote will match "me Read". I tested this.
@armsys: Exclamation mark will invert the result (aka NOT)
I'm a casual coder using AHK language. All of my xys scripts:
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488

LittleBiG
Posts: 1848
Joined: 08 Apr 2011 12:57
Location: Win10x64

Re: Force exact matches doesn't work

Post by LittleBiG »

Marco wrote:Regex:

Code: Select all

>^readme\.txt$
Wrong. It matches to this for example: Readme.txt22.txt

armsys
Posts: 557
Joined: 10 Mar 2012 12:40
Location: Hong Kong

Re: Force exact matches doesn't work

Post by armsys »

LittleBiG wrote:Maybe I am "wired" wrongly, but this is exactly in the help file.
See: http://www.xyplorer.com/xyfc/viewtopic.php?f=3&t=10543

Marco
Posts: 2354
Joined: 27 Jun 2011 15:20

Re: Force exact matches doesn't work

Post by Marco »

LittleBiG wrote:
Marco wrote:Regex:

Code: Select all

>^readme\.txt$
Wrong. It matches to this for example: Readme.txt22.txt
I added the dollar sign in the original post, with that it works, tested.
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]

LittleBiG
Posts: 1848
Joined: 08 Apr 2011 12:57
Location: Win10x64

Re: Force exact matches doesn't work

Post by LittleBiG »

armsys wrote:
LittleBiG wrote:Maybe I am "wired" wrongly, but this is exactly in the help file.
See: http://www.xyplorer.com/xyfc/viewtopic.php?f=3&t=10543
About the QNS? I am talking about Visual filter.

binocular222
Posts: 1424
Joined: 04 Nov 2008 05:35
Location: Win11, Win10, 100% Scaling

Re: Force exact matches doesn't work

Post by binocular222 »

ah, the Visual Filter.
Then you cannot quote. Quotes are treat as literal search term. This bugs me for a while.
I'm a casual coder using AHK language. All of my xys scripts:
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488

armsys
Posts: 557
Joined: 10 Mar 2012 12:40
Location: Hong Kong

Re: Force exact matches doesn't work

Post by armsys »

Hi LittleBig,
In the address bar, Marco's regex works:

Code: Select all

C:\Temp\?>^readme\.txt$
That's, it finds Readme.txt only, not Readme.txt22.txt. :appl:
Thanks Marco.

LittleBiG
Posts: 1848
Joined: 08 Apr 2011 12:57
Location: Win10x64

Re: Force exact matches doesn't work

Post by LittleBiG »

Marco wrote:
LittleBiG wrote:
Marco wrote:Regex:

Code: Select all

>^readme\.txt$
Wrong. It matches to this for example: Readme.txt22.txt
I added the dollar sign in the original post, with that it works, tested.
Yes, it is better now. But it is not an answer to my original question. Why doesn't it work as advertised in the help file? (without regex).

Marco
Posts: 2354
Joined: 27 Jun 2011 15:20

Re: Force exact matches doesn't work

Post by Marco »

armsys wrote:Thanks Marco.
You're welcome :D
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]

Post Reply