Get filename from arbitrary path

by b9chris

JavaScript

alert('C:/blah\\blah/blibbety\\filename.jpg'.split('/').pop().split('\\').pop().split('.').shift());