I am trying to write an RegExp that matches something like 01, 03, 05-08, 10 but does not match 01, 03, 05-08, (because the squence has to end with a number).
So basically my "string" consists of /(\-?\d+)\-(\-?\d+)/ (e.g. 01-05 or -5-10) every instance of this pattern is seperated by a comma.
I tried a looong time with RegExr but couldn't find a solution for my problem. Here is my try: http://regexr.com?34hh1
With the RegExp I want to do SEQUENCE_EXP.test('some string').