C#是否是数字判断

public static bool IsNumber(string strNumber)
{
    Regex regex = new Regex("[^0-9]");
    return !regex.IsMatch(strNumber);
}


posted on 2011-07-02 20:53  人在程序  阅读(239)  评论(0编辑  收藏  举报

导航