[Solved] VS function that must start with a letter, but accept numbers after the letter


I end up adding the first letters to my code, and enforcing with must add 3 letters to the beginning of the number scanned {3} and with that , it worked.

 if (!System.Text.RegularExpressions.Regex.IsMatch(txtLotNumber.Text, "^[A-Z]{3}[0-9-]"))

        {
            MessageBox.Show("Please scan Supplier Lot barcode at Supply Lot field");
            return;
        }

 

solved VS function that must start with a letter, but accept numbers after the letter