I have a couple of different string-numeric patterns that needs validation during user input.
They look like this
// Always a dash, always a comma
var variant1 = "0-5,99";
// Always a dash, never a comma, always integers
var variant2 = "10-20";
I was thinking of doing something like this but obviously it doesn't work :/
var reg1 = @"(\w{2})-(\w{2})";
var match = Regex.IsMatch(variant2 , reg1);
Thanks