hi,
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
but i do not know where is the problem . and i want to know what inputs matches with my pattern .
Thanks alot
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
Comment