I need help for a little task. I have a configuration file where I have to get the specified HEX color code:
; List of colors to use for
; the cards in the game
; Colour Memory
#3be6c4
#e6e03b
#6f3be6 ; This purple shade could be nicer...
#4fe63b
#e63b3b
#ff5a00
#ff00de
#3b8fe6
On my jQuery code, I know how to read the data from the file, but what I need now is to take ONLY the HEX codes (cutting out blank lines and comments), and put each one into an array. It's a regex matter I guess, but I'm kind of stocked :D
Many thanks
'#abcedef'.match(/^(#[a-z0-9]{6})/)[0]--> "#abcede"/#[a-f0-9]{6}/imatches hex,a-zis most certainly incorrect.