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
trim
Home
ColdFusion
Discussions
trim
0
Upvote
trim
kt03
Explorer
,
/t5/coldfusion-discussions/trim/td-p/926712
Mar 28, 2008
Mar 28, 2008
Copy link to clipboard
Copied
I have the string:
http://myserver/ap/calendar/events/ref.txt
how do I trim this string and get only the file name which is ref.txt?
thanks
TOPICS
Getting started
Views
375
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
1 Correct answer
Oğuz Demirkapı
Contributor
,
Mar 28, 2008
Mar 28, 2008
Oğuz Demirkapı
•
Contributor
,
Mar 28, 2008
Mar 28, 2008
<cfset myLink = "
http://myserver/ap/calendar/events/ref.txt">
<cfset myNewLink= ListLast(myLink,"/")>
Votes
0
Upvote
Translate
Translate
Jump to answer
2 Replies
2
Jump to latest reply
Correct answer by
Oğuz Demirkapı
Contributor
,
/t5/coldfusion-discussions/trim/m-p/926713#M85109
Mar 28, 2008
Mar 28, 2008
Copy link to clipboard
Copied
<cfset myLink = "
http://myserver/ap/calendar/events/ref.txt">
<cfset myNewLink= ListLast(myLink,"/")>
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
kt03
AUTHOR
Explorer
,
/t5/coldfusion-discussions/trim/m-p/926714#M85110
Mar 28, 2008
Mar 28, 2008
Copy link to clipboard
Copied
LATEST
In Response To Oğuz Demirkapı
It worked, thank you very much.
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