Regex help needed - match all after a hyphen


    Apr 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?

    • Apr 30 2013 | 3:50 pm
      Best, Jeremy
    • Apr 30 2013 | 3:55 pm
      Thanks a ton Jeremy.