Filtering out strings in a list

May 6, 2011 at 6:19am

Filtering out strings in a list

Hi,

If I have this list: hello 1 2 3 goodbye

Then I would like to filter out the strings hello and goodbye, so I end up with this list:

1 2 3

How do I do this?

Best,

Kaspar

#56920
May 6, 2011 at 6:42am

[zl filter]?

hth ole

– Pasted Max Patch, click to expand. –
#204013
May 6, 2011 at 6:44am

or a regexp one

– Pasted Max Patch, click to expand. –
#204014
May 6, 2011 at 6:57am

Hmm, what if the strings hello and goodbye were any string?

- how do I filter out any words?

#204015
May 6, 2011 at 7:43am

I would do it this way:

– Pasted Max Patch, click to expand. –

aa

#204016

You must be logged in to reply to this topic.