JavaScript regular expressions - match a series of hexadecimal numbers <p>Greetings JavaScript and regular expression gurus,</p> <p>I want to return all matches in an input string that are 6-digit hexadecimal numbers with any amount of white space in between. For example, "333333 e1e1e1 f4f435" should return an array:</p> <pre><code>array[0] = 333333 array[1] = e1e1e1 array[2] = f4f435 </code></pre> <p>Here is what I have, but it isn't quite right-- I'm not clear how to get the optional white space in there, and I'm only getting one match.</p> <blockquote> <p>colorValuesArray = colorValues.match(/[0-9A-Fa-f]{6}/);</p> </blockquote> <p>Thanks for your help,</p> <p>-NorthK</p>