[tw5] Macro question

2019-07-16 Thread Damon Pritchett
Hello all you helpful folks. I'm having a little nuisance with a macro that I'm using which is shown below: \define date-str(date) <$list filter="[[$date$]splitbefore[-]]" variable=x > <$list filter="[[$date$]removeprefixsplitbefore[-]removesuffix[-]]" variable=m> <$list

[tw] Re: [TW5] Macro Question: Is there an easier way to achieve this?

2017-10-11 Thread codacodercodacoder
On Wednesday, October 11, 2017 at 1:34:57 PM UTC-5, Stephan Hradek wrote: > also think we need a few more operators THIS. But that's some pretty nifty filtering, Stephan. I'd have been holding my breath running a recursive filter ;) I certainly think there is need for some basic string

[tw] [TW5] Macro Question: Is there an easier way to achieve this?

2017-10-11 Thread Stephan Hradek
Hi! I am in need for something that gives me, given a path, just the filename part of it. Of course I could use a JavaScript Macro, but I do not like the overhead. The TW5 standard list operators do not give me much useful for splitting a string, Just the "splitbefore". But after some