Assuming I have a tiddler and I want to parse it line by line. Is it doable?
Thanks
<$list filter="[[HelloThere]get[text]splitregexp[\n]!is[blank]nth[3]]">
<$text text=<<currentTiddler>>/><br/>
</$list>
I really wish someone can shed light on this
¶ | 182 | ¶ | pilcrow sign |
I'm unable to find the delimiter equivalent to \n in TW5Assuming I have a tiddler and I want to parse it line by line. Is it doable?
<$vars lf="">line count=<$count filter="[{SomeTiddler}split<lf>]"/><br><$list filter="[{SomeTiddler}split<lf>]" variable="thisline"> <<thisline>> ({{{ [<thisline>length[]] }}} chars)<br></$list></$vars>
So often you see what I should of seen but did not.
This should allow custom parsers in wiki text and widgets. Parse each line and transform it including adding line breaks, possibly the only invisible character in wiki text apart from tabs.
Build a new variable with the output and set a, or the, text field to the variable.
This also enables line based add (insert) change delete, append and prepend.
With what you have done here I am tempted to have a global of variable to complement those such as "[[" etc for use with string operations or concatinations. Perhaps even propose for the core?
this seems to me to open many possibilities.
Thanks
Tony