Can i create a regex to find everything between [[ ]]

60 views
Skip to first unread message

Tony K

unread,
Apr 30, 2020, 8:14:59 AM4/30/20
to TiddlyWiki
regexp:text["Demo"(?i)]


i am using this one to get all occurences of "Demo" however how can i modify it to find [[Demo]] instead?

thank you 

PMario

unread,
Apr 30, 2020, 9:50:30 AM4/30/20
to TiddlyWiki
Hi

Just use: [[Demo]backlinks[]]

It will show you all tiddlers that have [[Demo]] in the text area.

It will also show you [[asdf|Demo]] like tiddlers

-mario

PMario

unread,
Apr 30, 2020, 9:52:01 AM4/30/20
to TiddlyWiki


On Thursday, April 30, 2020 at 2:14:59 PM UTC+2, Tony K wrote:
regexp:text["Demo"(?i)]


i am using this one to get all occurences of "Demo" however how can i modify it to find [[Demo]] instead?

There seems to be a problem in the regexp detection of escaped \]  .. Needs more investigation.

-mario

Tony K

unread,
Apr 30, 2020, 10:06:41 AM4/30/20
to TiddlyWiki
Hello Mario

yes i tried \[ \![ none worked

what i am trying to accomplish is get the list of all tiddlers containing "Demo" but NOT [Demo] so, in other terms, "freelinks" as you call it

PMario

unread,
Apr 30, 2020, 10:07:51 AM4/30/20
to tiddl...@googlegroups.com
This should do it too

<$set name="text-pattern" value="\[\[Demo\]\](?i)">
<<list-links "[regexp:text<text-pattern>]">>
</$set>

-m

Tony K

unread,
Apr 30, 2020, 10:11:08 AM4/30/20
to TiddlyWiki
oh wow

i used 

regexp:text["Demo"(?i)] -  [[Demo]backlinks[]]


and i think it worked
Reply all
Reply to author
Forward
0 new messages