How can I filter out a words?

tazio's icon

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

Sergio Martins's icon

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

cheers,

S.

Nikolas K's icon
Max Patch
Copy patch and select New From Clipboard in Max.

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

tazio's icon

Thanks a lot guys! Nicolas your way works great!