title: Replace forward slash "/ " character in JavaScript string?
body: <p>I have this string: </p>
  
  <pre><code>var someString = "23/03/2012";
  </code></pre>
  
  <p>and want to replace all the "/" with "-".</p>
  
  <p>I tried to do this:</p>
  
  <pre><code>someString.replace(///g, "-");
  </code></pre>
  
  <p>But it seems you cant have a forward slash <code>/</code> in there.</p>