Hello,
viewtopic.php?p=63358&hilit=lpp#p63358
In this previous post I defined the 2 suggested macros: fpp (first part in path) and lpp (last part in path) and they where working fine, I did not use them for sometime but today I needed them, the macro fpp worked fine but the lpp returns an empty results
I tried multiple values as parameters lpp:1, lpp:2, lpp:3 .... etc) but the same
Any ideas what could be the problem?
Thank you
An old macro stopped working
Re: An old macro stopped working
There was a fix to how REGEXEXTRACT works.addcolumn:a a-label:="Last $param: path parts" a:=regexextract($path:,"(?:[^\\]*(\\|$)){$param:}$")
(?:...(...)...) will set match 1
Wrap the whole regex pattern in a capture group:
addcolumn:a a-label:="Last $param: path parts" a:=regexextract($path:,"(([^\\]*(\\|$)){$param:})$")
-or-
addcolumn:a a-label:="Last $param: path parts" a:=regexextract($path:,"(?:[^\\]*(?:\\|$)){$param:}$")
Re: An old macro stopped working
It worked.
thanks a lot.
Best regards
thanks a lot.
Best regards