Forums > MaxMSP

Regex help needed – match all after a hyphen

April 30, 2013 | 3:46 pm

I’m trying to make a regex that matches all after a hyphen character. I have a coll that stores indices as symbols of "1-4", "22-2", etc. and I want to split them into the number before the hyphen and after with two regex objects.

My object for the characters before it works: regexp ([^-]*)-

regexp \-(.*) does not work, though my (limited) knowledge of regex says it should… anyone able to help?


April 30, 2013 | 3:50 pm
– Pasted Max Patch, click to expand. –

Best, Jeremy


April 30, 2013 | 3:55 pm

Thanks a ton Jeremy.


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