How to exclude items in a list-item

I have a field in many tiddlers. Originally I only had one value in the field and the following produces a nice indented listing of contents, finding all the tiddlers grouped under each different field entry:

<$list filter="[each:list-item[field1]sort[]]">  

!!<$link/>  

<<list-links "[{!!title}listed[field1]]">>  

</$list>

Now I want to hold multiple values in field1 value1 value2 value3

The code still works, however, in the field it is not so easy to read, so I thought I would add a ‘marker’, like this value1 : value2 : value3

Unfortunately this trips up my filter, and “:” gets iterpreted as a list item. I get and output:

: 
   tiddler1
   tiddler2
   tiddler3
value1
   tiddler2
   tiddler4
value2
   tiddler1
   tiddler5

How can I exclude “:” from the output?

Try this:

<$list filter="[each:list-item[field1]sort[]] -[[:]]">  

!!<$link/>  

<<list-links "[{!!title}listed[field1]] -[[:]]">>  

</$list>
1 Like