I have a regular expression that looks like this:
/([A-z0-9]+\-)+/g
It matches the pattern test-string- out of test-string-5RtA. How can I ignore that last - character (but only the last one) out of that match. I tried using a positive lookahead but that doesn't seem to do anything. How can I modify my regular expression to exclude the last - character?
Here is the link to see the regular expression in action.