It is often more useful to explain what you want to do, rather than look
for a narrow technical solution. TW macros and tools don't work the way you
might expect, coming from some other programming language background. For
instance, why would you apply a reg exp to a variable holding a list of
tags? I'm guessing that you want to apply one of 3 tags based on some other
condition within the tiddler (perhaps other tags, fields, or title). If we
understood your intentions better, it would be easier to help.
In an event, in all cases where you want to make physical changes to one or
more tiddlers, you will need a message-handling widget such as the
ButtonWidget, SelectWidget, RadioButton, etc. And inside of the <$button>
or other widget you will need an "actions" attribute that uses a set of
ActionSendMessage, or ActionSetField or similar action widgets.
Good luck!
-- Mark
On Thursday, December 20, 2018 at 7:19:30 AM UTC-8, vpl wrote:
>
> Hi,
>
> I would like to assign a tiddler field a sub set of tags of the current
> tiddler
> Ex:
> My current tiddler has 3 tags: done, current, started
> I want to assign to the field *state* one of these 3 tags (using a regexp)
>
> For that I've first tried to assign the list of current tiddler tags to a
> variable with the hope to be able to apply a regex on this variable ....
>
> <$set name="myVariable" value={{!!tags}}>
> <$text text=<<myVariable>>/>
> </$set>
>
> Works fine, but how to apply now a regex on this *myVariable *such as I
> can set the result to my target field ?
>
> Thanks for your lights !
>
> Regards
>
> Vpl
>
--
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/cfb05540-72e6-4e04-ab8c-e48e8a5649cf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.