message split

teqy's icon

hi :)

Is there a object that can split a message:

A1-1-7

out of two ports

port 1 = A1-1-

and

port 2 = 7

thanks for help : )

yp's icon

You can do it with a regexp and sprintf combo, as in the following patch.
Do you really want to send the second hyphen (after the 1) as well? otherwise delete the second hyphen in the sprintf object.

Max Patch
Copy patch and select New From Clipboard in Max.

cheers

teqy's icon

That is awesome, thanks allot yp , would have took me ages to find that out : )

yay !
: P