Hi everyone... this is maddeningly simple.... but i am still stumped whether my answer is right...
i want to match a string with following format....
- 70-60
- 50-40
- 100-90 //
(Edit: changed from 100 -90 to 100-90)
- etc.....
i started learning regex just today.... and i worked out the pattern
/^[0-9]+-[0-9]+/$
to match the string . But testing it in some online regex testing tool i found that ti doesn't match...
any pointers that would help me..?
thank a lot in advance....