There are no core tools for extracting sections identified by regular
expressions directly. Instead you
have to apply various levels of splitting, identifying, extracting
(sometimes using nth operator). The actual
separator gets thrown away -- the opposite of what would be convenient for
extracting text.
So, if there were macros in tiddler test1, then this works (in my test) :
<$list
filter="[[test1]get[text]splitregexp[\n]regexp[^\\define]splitregexp[^\\define]!is[blank]]"
variable="splitme">
{{{ [<splitme>splitregexp[\(.*?\)]first[]] }}}<br/></$list>
So stuff gets split into lines. Then matching lines are identified. Then
split. Compressed. Used in {{{ }}} where they are split again by
(parameter), but this time only the part before the split is saved.
--
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/3cb85911-3bb2-47ff-808c-af42778fd0ab%40googlegroups.com.