Multiple tag filter

Hi,

the solution from this thread gives the unique word count for tiddlers tagged ‘A’:

\define non-alpha() [^A-Za-z]+

{{{  [tag[A]get[text]splitregexp<non-alpha>lowercase[]unique[]count[]]  }}}

How do I get the same result for tiddlers tagged ‘A’ or ‘B’?

Inserting [tag[A]][tag[B]] doesn’t work and I can’t find an example anywhere.

Thanks
Jon

To use multiple tags, you’ll need multiple filter runs—one for each. We can then apply the rest of the filter to everything that precedes it:

{{{  [tag[A]] [tag[B]] +[get[text]splitregexp<non-alpha>lowercase[]unique[]count[]] }}}
1 Like

Great!

Many thanks
Jon