//************************************** // Name: regular expression // Description:using regular expression to enter your name in proper format 3 name and each name start with capital letter // By: hatem mostafa ahmed // // // Inputs:None // // Returns:None // //Assumes:None // //Side Effects:None //************************************** using System; using System.Text.RegularExpressions; public class Program { public static void Main() { Console.WriteLine("Hello World"); Regex rg = newRegex("^[A-Z][a-z]+(\\s[A-Z][a-z]+){2}$"); Console.WriteLine("enter you full name "); String text = Console.ReadLine(); Console.WriteLine(rg.IsMatch(text)); } }