title: Regular expression to split string at '/' or '\' in javascript?
body: <p>I'm using the javascript's method "split()" to split a string at '\' or '/' characters. I searched some other posts to see how regular expressions work and tried this:</p>
  
  <pre><code>var text1 = "some/text";
  var text2 = "some\\text2"
  var words = text1.split(/\//);
  var words2 = text2.split(/\\/);
  </code></pre>
  
  <p>Both work great, but When I try this one:</p>
  
  <pre><code>var text3 = "some\\other/text";
  var words3 = text3.split(/\////);
  </code></pre>
  
  <p>It just don't work. I don't know what I'm missing here.</p>