Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

trim

Explorer ,
Mar 28, 2008 Mar 28, 2008
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
375
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Contributor , Mar 28, 2008 Mar 28, 2008
<cfset myLink = " http://myserver/ap/calendar/events/ref.txt">
<cfset myNewLink= ListLast(myLink,"/")>

Translate
Contributor ,
Mar 28, 2008 Mar 28, 2008
<cfset myLink = " http://myserver/ap/calendar/events/ref.txt">
<cfset myNewLink= ListLast(myLink,"/")>

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Mar 28, 2008 Mar 28, 2008
LATEST
It worked, thank you very much.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources