I'm trying to recognize an input consisting of one to three numbers, seperated by dashes; thus "6", "11-2" and "0-8-3" would be valid. I also need to capture the numbers. I'm using C# BTW.
I've tried several regexs with partial success. When I try