private void btnValidatePhoneNumber_Click(object sender, EventArgs e)
{
Regex re = new Regex("^9[0-9]{9}");
if(re.IsMatch(txtPhone.Text.Trim()) == false || txtPhone.Text.Length>10)
{
MessageBox.Show("Invalid Indian Mobile Number !!");
txtPhone.Focus();
}
}
Regex re = new Regex("^9[0-9]{9}");
what is this