in reply to Re: Checking for a special matching
in thread Checking for a special matching
Actually my idea for regex was to take the 5 array elements, turn them into one big scalar string and then match patterns for example if K occurs 2 times it`s a pair of Kings, if clubs occurs 5 times its... dunno the name the all-colors-winning pattern, if 3 of 'these' and 2 of 'this' it`s 'full house'. But the idea was to turn the array into one big string and solve the problem with a 1-shot-2-rabbits.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Checking for a special matching
by JavaFan (Canon) on Apr 02, 2012 at 18:13 UTC |