I have the following regexes:
([JQKA])\1([2-9TJQKA])\1
I would like to check string with length of 5 if both of regexes matches together - but on separate characters.
So:
If I have a string of 2233 - it should not match because it does not meet condition of Regex 1 and is meeting condition of Regex 2
If I have a string of 33QQ2 - it should match because QQ matches Regex 1 and 33 matches Regex 2
If I have a string AQQ44 - it should match because QQ Regex 1 and 44 matches Regex 2
If I have a string AAKQQ - it should match because AA Regex 1 and QQ matches Regex 2
If I have a string QQ234 - it should not match. Even when it matches Regex 1 and Regex 2 condition with same QQ, I want second condition to validate other part of string than first so after it matches Regex 1 - it does not find part that match Regex 2.