I'm cleaning out a a .txt file with all the pantone colors for use in a script
What I want is this:
HEX:FEDDOO YellowC 254 221 0
and what I currently have in my textfile is this:
Yellow C HEX:FEDD00 254 221 0
So i have a name for the color, a hex number and the RGB numbers.
The RGB blocks are always the last 3 letters/words and the hex number is always the 4th word in the line, the name of the color is sometimes made up of 1/2 or 3 blocks of text Yellow C Blue 0821 C ...
First, I should be able to join the color name in one word (so Yellow C to YellowC; Blue 0821 C to Blue0821C; etc.
So, in every line i'll have 5 blocks.
Then, the hex number should go in the beginning of the line instead of being the second "word". (--> block one becomes block 2 and block 2 becomes block 1)
The reason I want it like that is that I already made a RAL chart with every value in that order, so I should be able to create the pantone chart in the same manner so I can use the same script to read those values.
Thanks in advance!