hmm.....

Mario, thanks!  This works .... sort of ....

But I don't know the prefix - I have a list of 50+ tiddlers with unique 
digit patterns as part of the tiddler names.  I need to extract the prefix.

Is there a substring function in TW that can operate on a variable? Like, 
=substring(string,5) that returns the first 5 chars?


//steve.

On Friday, March 17, 2017 at 5:42:09 PM UTC-4, PMario wrote:
>
> global macro like this: 
>
> \define myLink(prefix)
> <$set name="digit-pattern" value="^$prefix$">
> <$list filter="[regexp:title<digit-pattern>]" emptyMessage="no 
> match"><$link to=<<currentTiddler>> >$prefix$</$link></$list>
> </$set>
> \end
>
>
> usage: 
>
> <<myLink "01 01">>
>
> The only problem is, if there are several matches. ... It doesn't look 
> good then. 
>
> have fun!
> mario
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/ed4e2010-3ede-4162-86e0-e4adf889bc04%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to