Page 1 of 1

Set Visual Filter - regular expression Bug ?

Posted: 29 Jul 2015 09:14
by spoelle
Hello,

I'm testing XYplorer (the Free Edition 13.80.0100) and I think there is
something not working correct while filtering with reg expressions:


File names:

BE_08020150727_M.TPLog
BE_08020150727.TPLog
BE_08020150725_M.TPLog
BE_08020150725.TPLog
BE_10620150727_M.TPLog
BE_10620150727.TPLog


Set Visual Filter : BE_080[0-9]*\.TPLog
Filtered files =>
BE_08020150727_M.TPLog
BE_08020150727.TPLog
BE_08020150725_M.TPLog
BE_08020150725.TPLog


This is not correct, I only should get:
BE_08020150727.TPLog
BE_08020150725.TPLog

Can someone can confirm this?

Re: Set Visual Filter - regular expression Bug ?

Posted: 29 Jul 2015 09:22
by highend
No bug, you don't use the regex filter^^

Use a ">" in front of yours...

Code: Select all

>BE_080[0-9]*\.TPLog
XY help -> Index tab - Visual Filters -> Regular Expressions
Regular Expressions

Visual Filters also support the Regular Expressions syntax. Like elsewhere in XYplorer to activate the regular expressions mode simply prefix the pattern with the character ">". For example:

>\.doc$ -> show only *.doc files

>.*(\.png|\.jpg)$ -> show only *.png and *.jpg files

Re: Set Visual Filter - regular expression Bug ?

Posted: 29 Jul 2015 09:24
by bdeshi
you need to prefix regexp visual filter pattern with a >, so that XY actually knows it's a regexp pattern.

Re: Set Visual Filter - regular expression Bug ?

Posted: 29 Jul 2015 09:30
by spoelle
Waaawh, what quick answers! Thank you guys, I did not know about that prefix :-/
Thanks !