title: Escaping backslash in string - javascript
body: <p>I need to show the name of the currently selected file (in <code>&lt;input type="file"&gt;</code> element). </p>
  
  <p>Everything is fine, the only problem is I'm getting this kind of string "C:\fakepath
  \typog_rules.pdf" (browset automatically puts this as value for the input element).</p>
  
  <p>When I try to split the string by <code>'\'</code> or <code>'\\'</code> it fails because of unescaped slashes. Attempts to match/replace slashes fails too. Is there a way around this? I need this to work at least in Opera and IE (because in other browsers I can use FileReader)</p>
  
  <p>E.G. I'm getting "C:\fakepath\typog_rules.pdf" as input and want to get "typog_rules.pdf" as output.</p>