hey it still doesnt work even though i used the header my code is
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");
Errors are
Error 1 The type or namespace name 'Regex' could not be found (are you missing a using directive or an assembly reference?) D:\HDProject\GOGREEN\GOGREEN\SalesPerson.cs 48 13 GOGREEN
and
Error 2 The type or namespace name 'Regex' could not be found (are you missing a using directive or an assembly reference?) D:\HDProject\GOGREEN\GOGREEN\SalesPerson.cs 48 28 GOGREEN