Test, validate and match regular expressions
This regex matches card game hand notations where each card is written as a rank-suit pair (e.g., 'Ac' for Ace of clubs). It expects cards grouped by suit in four sections, with each suit group containing zero or more cards of that suit. The pattern is useful for validating bridge or poker hand representations like ' cAcKcQc dJd9d hTh8h s6s'.