extract number from string X=0

Jul 20, 2011 at 2:03pm

extract number from string X=0

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

#58108
Jul 21, 2011 at 12:25am

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. –
#208688

You must be logged in to reply to this topic.