83538/how-to-get-the-file-name-from-a-full-path-using-javascript
Toggle navigation
Back
Ask a question
Blogs
Browse Categories
Browse Categories
Generative AI
Power BI
DevOps & Agile
Data Science
ChatGPT
Cyber Security & Ethical Hacking
Data Analytics
Cloud Computing
Machine Learning
PMP
Python
SalesForce
Selenium
Software Testing
Tableau
Web Development
UI UX Design
Java
Azure
Database
Big Data Hadoop
Blockchain
Digital Marketing
C#
C++
IoT (Internet of Things)
Kotlin
Linux Administration
MicroStrategy
Mobile Development
Others
RPA
Talend
TypeSript
Apache Kafka
Apache Spark
Career Counselling
Events & Trending Topics
Ask us Anything!
Log In
Sign Up
Home
Community
Categories
Web Development
Java-Script
How to get the file name from a full path using...
How to get the file name from a full path using JavaScript
0
votes
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.
html
css
javascript
laravel
php
mysql
linux-database
linux
Sep 2, 2020
in
Java-Script
by
kartik
•
37,520
points
•
3,416
views
answer
comment
flag
Your comment on this question:
Your name to display (optional):
Email me at this address if a comment is added after mine:
Email me if a comment is added after mine
Privacy: Your email address will only be used for sending these notifications.
Add comment
Cancel
1 answer to this question.
Your answer
Your name to display (optional):
Email me at this address if my answer is selected or commented on:
Email me if my answer is selected or commented on
Privacy: Your email address will only be used for sending these notifications.
Add answer
Cancel