title: replacing backslashes with forward slashes in actionscript
body: <pre><code>var aText:String = "C:\\folder\\folder\\file";
  var filterVal:String = aText.toLowerCase().replace( /\//g, '/');
  trace( aText );
  trace( filterVal );
  </code></pre>
  
  <p>results as:</p>
  
  <pre><code>C:\folder\folder\file
  c:\folder\folder\file
  </code></pre>
  
  <p>this code was based on <a href="http://blog.acrespo.mediajux.com/using-regex-replace-forward-slashes" rel="nofollow noreferrer">this site</a> and nascent regex skills.</p>
  
  <p>What am I doing wrong?  Thank you.</p>