Try to search your question here, if you can't find : Ask Any Question Now ?

regex to check string is certain length

HomeCategory: stackoverflowregex to check string is certain length
Avatarsourav asked 4 months ago

I am trying to write a regex to match pairs of cards (AA, KK, QQ ... 22) and I have the regex ([AKQJT2-9])1. The problem I have is that this regex will match AA as well as AAbc etc. Is there a way to write the regex such that I can specify I want to match ([AKQJT2-9])1 and only that (i.e. no more characters after).

1 Answers
Best Answer
AvatarFernando answered 4 months ago
Your Answer

7 + 5 =

Popular Tags

WP Facebook Auto Publish Powered By : XYZScripts.com