[Fixed] VFilter - NOT operator: ! does not work as expected

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".
Post Reply
Nolan
Posts: 66
Joined: 27 Nov 2013 05:23

[Fixed] VFilter - NOT operator: ! does not work as expected

Post by Nolan »

 
A tab: D:\TEST and its normal list in fresh XY v16.60.0302:
content_TEST.png
After applying VF pattern: d;!5 to the tab:
VF_pattern_1.png
Besides def123, abc123 should also show up in the filtered list, right?


BTW, please help confirm if the 2 VF patterns shown below work right.
1) After applying pattern: "*bc12*":
VF_pattern_2.png
2) After applying pattern: *"bc12"*:
VF_pattern_3.png
To see the attached files, you need to log into the forum.
Last edited by Nolan on 26 Apr 2016 06:56, edited 1 time in total.

admin
Site Admin
Posts: 67299
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: VFilter - NOT operator: ! does not work as expected

Post by admin »

1) WOW, good bug! :tup: Quite strange that this bug could remain undiscovered for 2.5 years (and apparently never worked even on the day I added it to the change log)!

Fix comes.

2+3) Those patterns cannot match anything because of the quotes. Simply remove the quotes...

highend
Posts: 15016
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: VFilter - NOT operator: ! does not work as expected

Post by highend »

2+3: Loose matches vs. strict matches (enforced by double quotes). The help file contains the details :)
One of my scripts helped you out? Please donate via Paypal

Nolan
Posts: 66
Joined: 27 Nov 2013 05:23

Post by Nolan »

 
Thanks for the explanation.

But XY's help file gives an example:

Code: Select all

Desktop|"*; *"| = List all items on Desktop containing "; "
In the example, the pattern contains both " " and *. Is the example's filter syntax incorrect?


Normal list:
content2_TEST.png
After applying pattern: "*; *"|:
VF_pattern_4.png
After applying pattern: *; *|:
VF_pattern_5.png
To see the attached files, you need to log into the forum.

admin
Site Admin
Posts: 67299
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re:

Post by admin »

Nolan wrote: 
Thanks for the explanation.

But XY's help file gives an example:

Code: Select all

Desktop|"*; *"| = List all items on Desktop containing "; "
In the example, the pattern contains both " " and *. Is the example's filter syntax incorrect?
Indeed, it is incorrect. It should have been like this:

Code: Select all

Desktop|*; *| = List all items containing "; "
Thanks for seeing this! :tup:

Post Reply