title: SyntaxError: Invalid regular expression: missing /
body: <p>According to <a href="http://www.regexr.com/38o5d">http://www.regexr.com/38o5d</a> my reqex seems to work, but when I implement it into my javascript</p>
  
  <p><code>var prefix = hash.replace(/\/|#/g, '');</code></p>
  
  <p>I'll get the following error: SyntaxError: Invalid regular expression: missing /</p>