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