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

With this case, I just want to get recycled log.jpg from the full path in JavaScript.

21 Answers
21

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *