How can I extract the string \"XMLFileName\" from the below URL using regular expression
var x = \"C:\\Documents and Settings\\Dig\\Desktop\\XMLFileName.xm
You can use: "[^\\]*$"
[^\\]*$
but why not using regular javascript functions like indexOf() etc.
indexOf()