Posted By

pussard on 04/18/11


Tagged


Versions (?)

Get file name from path


 / Published in: JavaScript
 

  1. function getFileNameFromPath(path) {
  2. return path.substring(path.lastIndexOf('/') + 1);
  3. }

Report this snippet  

You need to login to post a comment.