Trim URL from the right side.


hello all,

 

i trying trim right side of url base on first occurrence of "\".                      

 

 

note: url verity search result.

 

 

the url example: "c:\inetpub\wwwroot\conv_pdf\files\facility \ facility_ur_plan.doc "

 

if use           cfset tstring = #right(#url#,  20)#

 

i result of  "facility_ur_plan.doc"

 

what find first " \ "starting right side , use result cut point of right function.

 

ex: cfset tstring = #right(#url#,  #cut#  )#

 

this allow length of document name used.

 

any ideas help.

 

thank you

tj

 <cfset tstring = listlast(urlstring, "\")> 

 

mack



More discussions in Advanced Techniques


adobe

Comments

Popular posts from this blog

Error compiling for board Arduino/Genuino Uno.

Installation database is corrupt

esp8266 (nodemcu 0.9) client.write très lent ???