title: Extract file name from a path using regular expression
body: <p>How can I extract the string "XMLFileName" from the below URL using regular expression  </p>
  
  <pre><code>var x = "C:\Documents and Settings\Dig\Desktop\XMLFileName.xml"
  </code></pre>
  
  <p>Thanks</p>