Regex Formula - Is Match - String with 9 digits and Letter A at the end

Hi,

I’m using this regex formula to detect if my string has 9 digits at the start and capital letter A at the end but it always return False even if string is a match.

Regex formula
System.Text.RegularExpressions.Regex.IsMatch(“123456789A”,“(\d{9}\A)”).ToString

Hi @Mohamed_Ouahbi

Try this

System.Text.RegularExpressions.Regex.IsMatch("123456789A", "^\d{9}A$").ToString

1 Like

Please check with the below regex

System.Text.RegularExpressions.Regex.IsMatch(“123456789A”,“(\d{9}.*A)”).ToString

Regards

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.