I'm trying to create a regular expression containing the following rules:
eg. 123-1234567 // ok
123-1234567,abc12-12345 // ok
1231234567 //NOT OK
123-1234567-123 //NOT OK
123-1234567,abc12-12345, //NOT OK
,123-1234567,abc12-12345 //NOT OK
I need to validate the string on client-side with javascript and c# on server-side.