J Jon Paal May 6, 2006 #1 need pattern to determine if value is an integer (0-9 digits only) > 0 Regex.IsMatch(<Input>, "????")
need pattern to determine if value is an integer (0-9 digits only) > 0 Regex.IsMatch(<Input>, "????")
H Herfried K. Wagner [MVP] May 6, 2006 #2 Jon Paal said: need pattern to determine if value is an integer (0-9 digits only) > 0 Regex.IsMatch(<Input>, "????") Click to expand... "^\d*$" or "^[0-9]*$".
Jon Paal said: need pattern to determine if value is an integer (0-9 digits only) > 0 Regex.IsMatch(<Input>, "????") Click to expand... "^\d*$" or "^[0-9]*$".
D david May 8, 2006 #3 Jon Paal said: need pattern to determine if value is an integer (0-9 digits only) > 0 Regex.IsMatch(<Input>, "????") Click to expand... "^\d*$" or "^[0-9]*$". Click to expand... Or possibly "^\d+$". "^\d*$" will match an empty string, which probably isn't a valid integer, depending on context.
Jon Paal said: need pattern to determine if value is an integer (0-9 digits only) > 0 Regex.IsMatch(<Input>, "????") Click to expand... "^\d*$" or "^[0-9]*$". Click to expand... Or possibly "^\d+$". "^\d*$" will match an empty string, which probably isn't a valid integer, depending on context.