Hi Mohammad,

you can try something like this:

\define show-matches()
<$list filter="[range[1,$(matchCount)$]]" variable="matchIndex">
<$list filter="[enlist<text>regexp[$(searchRegex)$]nth<matchIndex>]" 
variable="match">

<<matchIndex>> - <$text text=<<match>>/>

</$list>
</$list>
\end

<$set name="text" value={{TiddlerWithSearchText}}>
<$set name="searchRegex" value="^//.*//$">
<$set name="matchCount" value={{{ [enlist<text>regexp<searchRegex>count[]] 
}}}>
<<matchCount>> matches: <br>
<<show-matches>>
</$set>
</$set>
</$set>


-- 
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/e440c876-fd0b-4a00-8e7f-811b45282d4e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to