JSFiddle - React, Tailwind, and code Playground
by alexdickson
JavaScript
var path = 'path\\to\\some\\file.png',
file = path.substr(path.lastIndexOf('\\') + 1);
document.body.innerHTML = file;
by alexdickson
var path = 'path\\to\\some\\file.png',
file = path.substr(path.lastIndexOf('\\') + 1);
document.body.innerHTML = file;