All community
This category
This board
Knowledge base
Users
cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results forÂ
ShowÂ
 onlyÂ
|
Search instead forÂ
Did you mean:Â
Exit
Global community
Language:
Deutsch
English
Español
Français
Português
日本語コミュニティ
Dedicated community for Japanese speakers
í•œêµ ì»¤ë®¤ë‹ˆí‹°
Dedicated community for Korean speakers
Sign In
Home
ColdFusion
Discussions
String split function?
Home
ColdFusion
Discussions
String split function?
0
Upvote
String split function?
dmorand17
New Here
,
/t5/coldfusion-discussions/string-split-function/td-p/226616
Jul 24, 2008
Jul 24, 2008
Copy link to clipboard
Copied
I'm trying to find a string split function but can't seem to find one.
I'm trying to retrieve just the filename from a path ..... for example:
D:\CFusionMX7\runtime\servers\coldfusion\SERVER-INF\temp\wwwroot-tmp\neotmp40892.tmp
I want to retrieve only the "neotmp40892.tmp" so I can save that to a variable.
Views
688
Translate
Translate
Report
Report
Follow
Report
More
Reply
Reply
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
4 Replies
4
Jump to latest reply
Dan_Bracuk
LEGEND
,
/t5/coldfusion-discussions/string-split-function/m-p/226617#M20150
Jul 24, 2008
Jul 24, 2008
Copy link to clipboard
Copied
ListLast will work.
Votes
0
Upvote
Translate
Translate
Report
Report
Follow
Report
More
Reply
Reply
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
satheesh_p
Explorer
,
/t5/coldfusion-discussions/string-split-function/m-p/226618#M20151
Jul 24, 2008
Jul 24, 2008
Copy link to clipboard
Copied
Hi
As dan rightly said you use listlast function as explained below.
<cfset filename="D:\CFusionMX7\runtime\servers\coldfusion\SERVER-INF\temp\wwwroot-tmp\neotmp40892.tmp">
<cfoutput>
#listlast(filename,"\")#
</cfoutput>
Thanks,
Satheesh.
Votes
0
Upvote
Translate
Translate
Report
Report
Follow
Report
More
Reply
Reply
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
dmorand17
AUTHOR
New Here
,
/t5/coldfusion-discussions/string-split-function/m-p/226619#M20152
Jul 24, 2008
Jul 24, 2008
Copy link to clipboard
Copied
In Response To satheesh_p
That worked like a charm! Thanks guys!!!!
Votes
0
Upvote
Translate
Translate
Report
Report
Follow
Report
More
Reply
Reply
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Newsgroup_User
LEGEND
,
/t5/coldfusion-discussions/string-split-function/m-p/226620#M20153
Jul 24, 2008
Jul 24, 2008
Copy link to clipboard
Copied
LATEST
In Response To satheesh_p
dmorand17 wrote:
> That worked like a charm! Thanks guys!!!!
Just in case you want something different there are is the
fileFromPath() function as well. But I'm not sure why this would be better.
Votes
0
Upvote
Translate
Translate
Report
Report
Follow
Report
More
Reply
Reply
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Post Reply
Preview
Exit Preview
never-displayed
You must be signed in to add attachments
never-displayed
Â
Resources
Documentation
ColdFusion User Guide