I have a string of multiple 'blocks' of colors in Hex notation. The number of blocks can vary from 1 to 9. each is separated with one or more spaces.
eg: string with 2 block BLCK1:#222222 BLCK2:#333333
string with 4 blocks BLCK1:#123456 TEXT:#654321 LINE:#334455 FONT:#214365
I want to validate such a string line against some basic rule:
but how can I do this for every block in the string within the regex?