예제 #1
0
        public void valid_Password()
        {
            Patterns pattern = new Patterns();

            Console.Write("Enter The Password : "******"Password  id is valid");
            }
            else
            {
                Console.WriteLine("Password id is Invalid");
            }
            Console.WriteLine("----------------------------------------------------");
        }
예제 #2
0
        public void valid_PhoneNo()
        {
            Patterns pattern = new Patterns();

            Console.Write("Enter The Phone No : ");
            String  Phone_No   = (Console.ReadLine());
            Boolean Regex_Name = pattern.Check_PhoneNo(Phone_No);

            if (Regex_Name)
            {
                Console.WriteLine("Phone No id is valid");
            }
            else
            {
                Console.WriteLine("Phone No id is Invalid");
            }
            Console.WriteLine("----------------------------------------------------");
        }
예제 #3
0
        public void Valid_FirstName()
        {
            Patterns pattern = new Patterns();

            Console.Write("Enter The First Name : ");
            String  First_Name = (Console.ReadLine());
            Boolean Regex_Name = pattern.Check_FirstName(First_Name);

            if (Regex_Name)
            {
                Console.WriteLine("First Name is valid");
            }
            else
            {
                Console.WriteLine("First Name is Invalid");
            }
            Console.WriteLine("----------------------------------------------------");
        }
예제 #4
0
        public void valid_Email()
        {
            Patterns pattern = new Patterns();

            Console.Write("Enter The Email ID : ");
            String  Email      = (Console.ReadLine());
            Boolean Regex_Name = pattern.Check_Email(Email);

            if (Regex_Name)
            {
                Console.WriteLine("Email id is valid");
            }
            else
            {
                Console.WriteLine("Email id is Invalid");
            }
            Console.WriteLine("----------------------------------------------------");
        }