title: Regexp Matching Hex Color Syntax (and Shorten form)
body: <p>Well, I'm pretty new on regex and in particular on JavaScript regexp.</p>
  <p>I'm looking for making a regexp that match the hex color syntax (like <code>#34ffa6</code>)
  Then I looked at the w3school page: <a href="http://www.w3schools.com/jsref/jsref_obj_regexp.asp" rel="noreferrer">Javascript RegExp Object</a></p>
  <p>Then that's my regexp:</p>
  <pre class="lang-regex prettyprint-override"><code>/^#[0-9a-f]{6}/i
  </code></pre>
  <p>It seems to work but, if I want it to match also the &quot;short hex color syntax&quot; form? (like <code>#3fa</code>), it's possible? I've tried using the character <code>|</code> but maybe I'm wrong with the syntax.</p>