要加 ^ $这两个符号 ,一个匹配开头,一个匹配结尾
用判断多简单,为什么非要用正则表达式?
"[3-9]|[1-9]\d"
static void Main(string[] args)
{
string value = "3";
Regex r = new Regex(@"^([3-9]{1})|(^[1-9]\d)$");
Console.WriteLine(r.Match(value).Success);
Console.ReadKey();
}