How can I filter out a words?

Dec 12, 2012 at 2:34pm

How can I filter out a words?

Hello patchers,
I’m having troubles sorting out this thing. I need to filter out a message or braking it down:
This is the message i have: /1/fader2
I need it to become like “/1/” “fader” “2″. Three separated words so I can route them into different objects! My idea is that a good way would be something that filter out 2 of the 3 words, I tried “zl filter” but no luck…

Any help would be much appreciated!!

Tazio

#65652
Dec 12, 2012 at 3:26pm

Not sure what you really need but maybe you could check “sprintf” object, might help.

cheers,

S.

#236474
Dec 12, 2012 at 3:26pm

Hi,

[regexp] is your friend ; Is there an expert to improved this one ?

– Pasted Max Patch, click to expand. –
#236475
Dec 12, 2012 at 5:15pm
– Pasted Max Patch, click to expand. –

my approach, (i am NOT an expert )
Its quite the same, with nicala danet’s, but with one regexp
Nikolas

#236476
Dec 12, 2012 at 6:16pm

Thanks a lot guys! Nicolas your way works great!

#236477

You must be logged in to reply to this topic.