Is there a way that I can get the last value (based on the \'\\\' symbol) from a full path?
Example:
C:\\Documents and Settings\\img\\recycled log.jpg<
Not more concise than nickf's answer, but this one directly "extracts" the answer instead of replacing unwanted parts with an empty string:
var filename = /([^\\]+)$/.exec(fullPath)[1];