Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Javascript
js get file name from path
Jim
Programming language:
Javascript
2021-08-09 04:36:58
0
Q:
js get file name from path
Bill Reason
Code:
Javascript
2021-06-11 07:13:31
var filename = fullPath.replace(/^.*[\\\/]/, ''); // works for both / and \
1
Tags
name
path
get
file
Related
get value from path variable node js
get file extension of path extendscript
how to get file name in directory node js
js get file location
get filename from url js
how to use javascript to get full file path
node.js name of file
get file name nodejs
New to Communities?
Join the community