This is the code I am trying:
string MatchNumberPattern = "^[a-zA-Z0-9]*$";
if (!Regex.IsMatch(cueTextBox9.Text, MatchNumberPattern))
{
MessageBox.Show("Enter 8 Space Alphanumeric BT ID only");
cueTextBox9.Text = String.Empty;
}
else
{
do something();
}
It's accepting aaaaaaaa
, but I want a combination of both alpha and numbers like aaaa1234
.