Forums > MaxMSP

extract number from string X=0

July 20, 2011 | 2:03 pm

hi! i found the solution here http://www.cycling74.com/forums/topic.php?id=27060 but it isnt working for minus values..

– Pasted Max Patch, click to expand. –

thanks for any help :)
adam


July 21, 2011 | 12:25 am

Pop a -? into your [regexp] and it will find the minus sign if it exists and carry on working regardless if it doesn’t. There’s a regexp tutorial on my webpage which I hope you find helpful, if you click on my name next to this post it will point you there. Here’s a little example patch:

– Pasted Max Patch, click to expand. –

Viewing 2 posts - 1 through 2 (of 2 total)