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
lrtetala
(Lakshman Reddy)
January 22, 2024, 3:43pm
2
Mohamed_Ouahbi:
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
vrdabberu
(Varunraj Dabberu)
January 22, 2024, 3:44pm
3
Please check with the below regex
System.Text.RegularExpressions.Regex.IsMatch(“123456789A”,“(\d{9}.*A)”).ToString
Regards
system
(system)
Closed
January 25, 2024, 3:44pm
4
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.