I need a regular expression to allow only alpahnumric, but not only alpha-strings. E.g. only number 8977 should be denied.
private void txtCompanyName_Validated(object sender, EventArgs e) {
    if(!System.Text.RegularExpressions.Regex.IsMatch(txtCompanyName.Text, @"^[0-9A-Za-z ]+$")) {
        MessageBox.Show("This accepts only alphabetical characters And Numbers");
        txtCompanyName.Focus();
    }
}
 
     
    