At the moment I am using \b\d-\d\b
with no success.
I would like to use an regular expression which is valid in the following cases:
Any number of digits (at least one numeric value) separated by only a hyphen.
Regular expression is valid in this cases:
1-1
2-22
03-03
4-44
555-555
and so on.
Could you please tell me what I'm doing wrong and point me out a good example?
Notes: I need to return true or false from the regex.