Hi Mohammad, yes this should work! :) The only downside is that it works for words only, not for sentences between the delimiters
I've recently made a macro that could be changed to split text into sentences delimited by a given prefix and suffix. It needs some work to do that, but I believe it can do it The macro is here: https://burningtreec.github.io/TW5-macrocollection/#%24%3A%2Fmacrocollection%2FBTC%2Ftext%2Finverse-string:%24%3A%2Fmacrocollection%2FBTC%2Ftext%2Finverse-string%20%5B%5BMacroCollection%20-%20Examples%20-%20inverse-string%5D%5D Hi BTC, > Many thanks. Your solution is great! > > Just a minor question, if I want to collect and count *bold *words or any > other words *delimited *by some delimiters can I do as below > > \define find (tiddler, delim-start:"//" delim-end:"//" > > <$set name="text" value={{$tiddler$}}> > <$set name="searchRegex" value="^$delim-start$.*$delim-end$$"> > <$set name="matchCount" value={{{ [enlist<text>regexp<searchRegex>count[]] > }}}> > <<matchCount>> matches: <br> > <<show-matches>> > </$set> > </$set> > </$set> > \end > > > -Mohammad > -- 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/07c1f597-209b-4fc2-a4ee-38e8254192b3%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.