Regex help needed - match all after a hyphen

kjelgaard's icon

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?

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

Best, Jeremy

kjelgaard's icon

Thanks a ton Jeremy.