string sample1 = "AK12-13/000000029024"; string Patten1 = "^\\[A-Za-z]{2}-\\d{2}/\\d{12}$"; System.Text.RegularExpressions.Match match1 = System.Text.RegularExpressions.Regex.Match(sample1, Patten1, System.Text.RegularExpressions.RegexOptions.IgnoreCase); if (!match1.Success) { MessageBox.Show("Please enter a valid Patten.", "TEST", MessageBoxButtons.OK, MessageBoxIcon.Warning); return; }
Patten1
string Patten1 = "^AK.{2}-.{2}/[0-9]{12}$";
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)