filter parameter issue

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
sk2107
Posts: 385
Joined: Sun Aug 07, 2022 8:48 pm

filter parameter issue

Post by sk2107 »

Hello,
I had this old filter for displaying a certain part of path
addcolumn:a a-label:="First $param: path parts" a:=regexextract($path:,"(?:(?:^|\\)[^\\]*){$param:}")

I did not use it for some time but now I found out that it is not working by giving for example fpp:3 it will result a blank column but if put the parameter as a fixed value fpp: works fine (but fixed levels of course)

addcolumn:a a-label:="First $param: path parts" a:=regexextract($path:,"(?:(?:^|\\)[^\\]*){3}")

thank you
void
Developer
Posts: 19839
Joined: Fri Oct 16, 2009 11:31 pm

Re: filter parameter issue

Post by void »

Please try unquoting $param:

addcolumn:a a-label:="First "$param:" path parts" a:=regexextract($path:,"(?:(?:^|\\)[^\\]*){"$param:"}")


I will review this change..
sk2107
Posts: 385
Joined: Sun Aug 07, 2022 8:48 pm

Re: filter parameter issue

Post by sk2107 »

It worked

Thanks a lot and best regards
Post Reply