The reality: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.
Force exact matches doesn't work
Forum rules
You might want to read this if you're looking for priority service
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%).
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.
How To Attach Images
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
You might want to read this if you're looking for priority service
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%).
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.
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
The help file:
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
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
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
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
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.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
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
binocular222's reply is factually correct.
But now we have a problem: How to exclude "This is a readme.txt*" from the search result?
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
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]
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
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
Read me without quote will match "me Read". I tested this.
@armsys: Exclamation mark will invert the result (aka NOT)
@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
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
Wrong. It matches to this for example: Readme.txt22.txtMarco wrote:Regex:Code: Select all
>^readme\.txt$
-
armsys
- Posts: 557
- Joined: 10 Mar 2012 12:40
- Location: Hong Kong
Re: Force exact matches doesn't work
See: http://www.xyplorer.com/xyfc/viewtopic.php?f=3&t=10543LittleBiG wrote:Maybe I am "wired" wrongly, but this is exactly in the help file.
-
Marco
- Posts: 2354
- Joined: 27 Jun 2011 15:20
Re: Force exact matches doesn't work
I added the dollar sign in the original post, with that it works, tested.LittleBiG wrote:Wrong. It matches to this for example: Readme.txt22.txtMarco wrote:Regex:Code: Select all
>^readme\.txt$
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]
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
About the QNS? I am talking about Visual filter.armsys wrote:See: http://www.xyplorer.com/xyfc/viewtopic.php?f=3&t=10543LittleBiG wrote:Maybe I am "wired" wrongly, but this is exactly in the help file.
-
binocular222
- Posts: 1424
- Joined: 04 Nov 2008 05:35
- Location: Win11, Win10, 100% Scaling
Re: Force exact matches doesn't work
ah, the Visual Filter.
Then you cannot quote. Quotes are treat as literal search term. This bugs me for a while.
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
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
Hi LittleBig,
In the address bar, Marco's regex works:
That's, it finds Readme.txt only, not Readme.txt22.txt.
Thanks Marco.
In the address bar, Marco's regex works:
Code: Select all
C:\Temp\?>^readme\.txt$Thanks Marco.
-
LittleBiG
- Posts: 1848
- Joined: 08 Apr 2011 12:57
- Location: Win10x64
Re: Force exact matches doesn't work
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 wrote:I added the dollar sign in the original post, with that it works, tested.LittleBiG wrote:Wrong. It matches to this for example: Readme.txt22.txtMarco wrote:Regex:Code: Select all
>^readme\.txt$
-
Marco
- Posts: 2354
- Joined: 27 Jun 2011 15:20
Re: Force exact matches doesn't work
You're welcomearmsys wrote:Thanks Marco.
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]
Don sees all [cit. from viewtopic.php?p=124094#p124094]
XYplorer Beta Club