Bingo! Thank you Mark, that's a really useful addition to my toolbox.
On Friday, September 29, 2017 at 7:46:54 PM UTC-5, Mark S. wrote: > > Thank you for the feedback. > > There was a bug in the javascript macro. I've attached a new version. > > Also, for your finder filter, you (probably) need to add the non-greedy > operator ("?"). So your filter looks like: > > <$list filter='[tag[TestGroups]get[text]regexps[(?g)bk-ann > ".+?"]regexps[bk-ann "(.+?)"]]' > > > HTH > Mark > > On Friday, September 29, 2017 at 4:37:58 PM UTC-7, > codacoder...@outlook.com wrote: >> >> Sorry I'm so late coming to this Mark, but I think I've found an issue... >> >> On Friday, August 25, 2017 at 9:18:05 AM UTC-5, Mark S. wrote: >>> >>> This version will return sub-groups for non-global searches. So in >>> codacoder's example, this search: >>> >>> <$list filter='[tag[TestGroups]get[text]regexps[(?g)bk-ann >>> ".+"]regexps[bk-ann "(.+)"]]' > >>> >>> will change this: >>> >>> >>> <<bk-ann "Explain the use of the Tiddlywiki's macro system">>X >>>> >>>> and >>>> >>>> <<bk-ann "Explain the scope rules of Tiddlywiki >>>> macros">> >>>> >>>> >>> Into >>> >>> >>> Explain the use of the Tiddlywiki's macro system >>>> Explain the scope rules of Tiddlywiki macros >>> >>> >>> Notice that it takes 2 regexps filters to accomplish this (the first >>> global one finds the items, the second trims them). >>> >>> >> Understand that there may be zero or more (usually more than one) bk-ann >> in any given tiddler. So, in the case of the example (if both are included >> in one tiddler, I see only >> >> Explain the use of the Tiddlywiki's macro system >> >> IOW, once a match is found, the rest of the text is ignored. Is there a >> way to make the regex less greedy and carry on to do the rest? >> >> Coda >> > > -- 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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. 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/69954b5f-eee9-40c8-a8d2-da92169c3fce%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.