ValidateFormate(Juryo.Text, @"(^[1-9]\d{0,7}$)|(^0\.\d$)|(^[1-9]\d{0,7})\.\d$")

 public Boolean ValidateFormate(string text1, string formate)
        {
            Regex r = new Regex(formate);
            Match m = r.Match(text1);
            if (m.Success)
            {
                return true;
            }
            else
            {
                return false;
            }
        }

posted on 2009-02-20 14:40  wn323225  阅读(125)  评论(0)    收藏  举报