I need regex for the following text validation:
must start with two alpabetic characters, six digits, minus and two digits represent the year, for example: Ew142356-19
I have tried:
Console.WriteLine(new Regex("[0-9]{2}[a-zA-Z]{6}[\\-]{1}[1-9]{1}[0-9]{1}").IsMatch("Be123456-19"));
but it prins False