Hi Is there a way to generalize regexp to use a variable?
I'm trying to modify SearchBox (from http://tesis.tiddlyspot.com/) to use regular expressions. I've succeeded in hardcoding a regular expression to find tags that contain the string "xyz" <$list filter="[!is[system]tags[]regexp[(?i)^.+(xyz).+$]]"> The SearchBox code has an example of finding tags that match a prefix using a variable <$list filter="[!is[system]tags[]prefix{$:/temp/search}]"> Using the Searchbox prefix search as an example, I tried replacing xyz with {$:/temp/search} as in <$list filter="[!is[system]tags[]regexp[(?i)^.+({$:/temp/search}).+$]]"> but it doesn't work. Steve Wharton On Wednesday, November 26, 2014 8:39:04 AM UTC-5, steve wrote: > > Tobias > > I agree. The one other thing that I might wish for would be to show a > second list of tags that contain, but do not start with the search string. > > Steve Wharton > > On Tuesday, November 25, 2014 8:36:42 PM UTC-5, Tobias Beer wrote: >> >> Hi Steve, >> >> >>> The SearchBox at http://tesis.tiddlyspot.com/ was just what I was >>> looking for. Thanks to Alberto Molina! >>> >> >> Actually, besides the fact that I don't like how *tags are hidden* under >> more, >> to show the *tags first* in the search results makes total sense. >> >> Best wishes, Tobias. >> > -- 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 post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/d/optout.

