Is there a route type function by selects out part of a message

Aug 16, 2011 at 2:53am

Is there a route type function by selects out part of a message

Any help would be appreciated, thanks,

I want to take the following message:

/Lemur/Track1/Volume/x[1]

and filter out the [1] so i can identify it seperately from [2] or [3] and make the following message:

/Lemur/Track1/Volume/x

– Pasted Max Patch, click to expand. –

Thanks for the help
Protocol

#58497
Aug 16, 2011 at 8:57am

Maybe something like this?

– Pasted Max Patch, click to expand. –
#210217
Aug 17, 2011 at 3:20am

WOW! THATS IT!!! Thank you so so so so much. It was giving me a HUGE headache! Thanks broc!

Do you mind explaining what you do, so I can add this function to my M4L toolbelt? namely what the brackets do? what the dashes do? what the d and the plus sign do?

Thanks for the help!

#210218
Aug 17, 2011 at 9:44am

The usage of [regexp] is explained on the reference page

http://www.cycling74.com/docs/max5/refpages/max-ref/regexp.html

Also, there are many articles/tutorials available on the net. Just google for “regular expression”.

#210219

You must be logged in to reply to this topic.