Hey the code I have for validating the tel no is not working for the string value (567) 789-5677
String rePhoneNumber = @"\([1-9]\d{3}\)\s?\d{3}\-\d{4}$";
Regex re = new Regex(rePhoneNumber);
if (re.IsMatch(textBox1.Text))
MessageBox.Show("valid phone number");
else
MessageBox.Show("Phone Number Must Be Entered As: (555) 555-1234");
Every time the else part is being executed
Why is this can somebody explain the code??
thanxxx