JSFiddle - React, Tailwind, and code Playground
by Simplybj
JavaScript
var folderPath = "\asdf\asdf\Media\401_2016_09_09_10_51_16.png"
var fileSplited = folderPath.split('\\');
alert(fileSplited);
var length = fileSplited.length;
var fileName = fileSplited[length - 1];
alert(fileName);