GIS的积累
It is never to late to learn

导航

 

 

using System;
using System.Collections.Generic;
using System.Text;
using System.Text.RegularExpressions;
namespace ConsoleApplication2
{
    class Program
    {
        static void Main(string[] args)
        {
            string Pattern = "^[0-9]*$";
            bool flag = Regex.IsMatch("0070044244", Pattern);
            if (flag == true)
                Console.WriteLine("Right");
            else
                Console.WriteLine("Wrong");
            Console.Read();
          
        }
    }
}

 

posted on 2009-07-14 23:52  GIS的学习  阅读(144)  评论(0编辑  收藏  举报