Unfortunately, the "removesuffix" filter does 2 things, rather than just the convenient one thing I wanted. It removes the suffix AND it filters. So though it would work great with #Buddha's it would fail with "#Buddha" . Correcting for this results in a more complicated filter. Now the logic results in this ginormous filter:
[list[!!text]prefix{$:/_state/tesseract/hashtag2tag}removeprefix{$:/_state/tesseract/hashtag2tag}] [list[!!text]prefix{$:/_state/tesseract/hashtag2tag}removeprefix{$:/_state/tesseract/hashtag2tag}removesuffix['s]] +[!suffix['s]] Test with caution, Mark On Tuesday, August 22, 2017 at 8:06:37 AM UTC-7, @TiddlyTweeter wrote: > > Ciao Mark > > Thanks for letting me know. Not to worry. I haven't done anything yet. FYI > I have been looking through the "back catalogue" of TW trying to find any > extensions people may have made around regular expressions to see if there > is anything that could make the code for the processing of the "hashtags" > into TW tags less cumbersome. > > Best wishes > Josiah > > Mark S. wrote: >> >> Darn. There's a logic error in the prefix technique I suggested. Don't >> use it (if you've started). >> >> Mark >> >>> -- 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/2247b9a3-e85f-4f0d-a398-8844e26800e9%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.