I have to validate a string A123456(T) using System.Text.RegularExpressions.Regex.IsMatch
in C#. i am using below reg. expression.
"^[A-Za-z]\d{6}\([A-Za-z0-9]\)$"
i have tested it online it is working as expected. but when i am using it with
System.Text.RegularExpressions.Regex.IsMatch("A123456(T)","^[A-Za-z]\d{6}\([A-Za-z0-9]\)$")
it always returns false. my problem is this i cant use any other method. i have to use only this method.