Javascript Regular Expression for RGB color validator
<p>I am trying to using this RegEx for color validation.</p>

<pre><code>colorPattern = /\#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})/
</code></pre>

<p>but it return always true</p>

<p>e.g</p>

<pre><code>colorPattern.test("#FF0000")
colorPattern.test("#FF0000000")
colorPattern.test("#FF0000mmm000")
</code></pre>

<p>are always true.</p>

<p>Any suggestion?</p>
