Regex rgx = new Regex(@"/^[A-Z]{6}\d{2}[A-Z]\d{2}[A-Z]\d{3}[A-Z]$/i");
bool result = rgx.IsMatch("PPPPLT80R10M082K");
MessageBox.Show(result.ToString());
This is a regex for italian tax code. It should works, I've also tried on regex101.com and it gives no error:
The problem is that when I run the code the result is always false. What did I do wrong?
Thanks in advance