how can i match input string as the below :
Input :
number-number,number-number,...,numb er-number
e.g :
123-456677,24114-7809,345555-900007 (matches)
123-456677,-7809,345555-900007 (NOT matches)
i write the pattern
Code:
@"(\d+-\d+,?)+"
Thanks alot