I've created this:
string str = myRegex; //let it for example be "[8-10]" Regex isnumber = new Regex(str); /* when the number has 2 or more digits, then the exception is thrown here [x-y] range in reverse order */ matches = isnumber.IsMatch(9); ... ...
can you please tell me, how string in new Regex(str) should look like to be able match numbers from 0 to 999 ?

New Topic/Question
Reply



MultiQuote





|