I love that about this list.. you can always learn something new..
I used:
<cfset foorl =
"thislocation/thisdir/thissite/thispage.cfm/var1/var2/var3/var4">
<cfset length = len(foorl)+1 />
<cfset pos = find(".cfm/", foorl) + len(".cfm/")/>
<cfset foo = mid(foorl, pos, length) />
<cfoutput>#foo#</cfoutput>
On Mon, Dec 6, 2010 at 9:23 AM, Rick Root <[email protected]> wrote:
>
> How about this...
>
> <cfset mylist = reReplace(mylist,".*?\.cfm/","","ONE")>
>
> seems to work.
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:339815
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm