:/ Well as I said I don't know any regex. I guess this is pretty useless and way too long then. Oh well. The one thing that doesn't do is keep an order of the colors so that it looks nicer and avoids colors that are unwanted (although I'm sure there's some regex magic that could accomplish that in like 4 characters)