源码地址: https://gitee.com/zhang_jianli

匹配版本号

  private bool MatchVersion(string s)
        {
            bool match = false;
            Regex reg = new Regex(@"^(\d+)\.(\d+)\.(\d+)\.(\d+)$");
            if (reg.IsMatch(s))
            {
                match = true;
            }
            return match;
        }

posted on 2007-10-24 11:09  天涯  阅读(130)  评论(0编辑  收藏  举报

导航

源码地址: https://gitee.com/zhang_jianli