remove a /symbol directly in front of an integer

FriFlo's icon

When recieving OSC messages in Max I have a multiobject. It sends /1/multiobject1/1 "value". I some cases I don't need the value, but the object number (the last in the name). After OSC-route /1/multiobject1, I get list: /1 "value" or /2 "value", and so on. With unpack I retrieve the first number, but how can I get rid of that slash? I just need the number ...

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

For example like this.

FriFlo's icon

Yahoo! Thank you very mucht! That would have taken me a week to find out! This community is truely great!