I'm not sure if you need regexpsplit for this. This worked for me:
<$vars split1="/*" split2="*/">
{{{ [{test}split<split1>nth[2]split<split2>nth[1]] }}}
</$vars>
where test contains
This is some text with an /* embedded comment */ in it.
If you really needed regexpsplit, then you would need to escape the
asterisk and probably also the forward slash e.g. \/\*
On Sunday, August 30, 2020 at 5:04:29 PM UTC-7, TW Tones wrote:
>
> Hi,
>
> Can someone please tell me the regexp so I can test for open and close
> comment in a line?
>
> eg;
> something1 something2 /* comment */ something3
>
> I want to extract the content between /* and */
>
> eg splitregexp[/*]rest[]splitregexp[*/]first[]
>
> I can't define a macro containing /* as it is interpreted as a comment :(
>
>
> Thanks in advance
> Tones
>
--
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 view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/24927125-bfc2-4969-99a6-3c82dc46b5bfo%40googlegroups.com.