Created
July 7, 2017 16:11
-
-
Save anonymous/e8481bfc5b75af3924cd7f8452341d4b to your computer and use it in GitHub Desktop.
TryCF Gist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfset normalURL = "http://test.com/myhome/live"> | |
<cfoutput><p>#normalURL#</p></cfoutput> | |
<cfset stringAfterLastSlash = ListLast(normalURL,"/")> | |
<cfoutput><p>#stringAfterLastSlash#</p></cfoutput> | |
<cfset stringRemovedFromURL = Replace(normalURL,"/#stringAfterLastSlash#","")> | |
<cfoutput><p>#stringRemovedFromURL#</p></cfoutput> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment