First my earlier post completely disregarded the fact that you'd have "/"
chars BEFORE the .cfm, so sorry about neglecting that tid bit.
Secondly I'd like to recommend not using so many #'s where they aren't
needed. I've worked the code below to illustrate what I mean. Also, to avoid
#'s on the l
How is that any different to listGetAt(list, 2, '.cfm/') and its shorter
code.
Regards,
Andrew Scott
http://www.andyscott.id.au/
> -Original Message-
> From: Larry Lyons [mailto:larrycly...@gmail.com]
> Sent: Tuesday, 7 December 2010 9:01 AM
> To: cf-talk
>
I'd use CF's underlying java core in this case, as in:
hth,
larry
> I have a string like this: thislocation/thisdir/thissite/thispage.
> cfm/var1/var2/var3/var4
>
> I want to split the string to get just that data that follows ".cfm/",
> which would be var1/var2/var3/var4.
>
> Tried
> listrest(listlast(thestring, "."), "/\") should give you 'var1/var2/var3/var4'
This seems to be working. Thanks for the assist. Now I'll share the results.
What I wanted to do was break any url containing obfuscated vars into into
elements I could work with for queries, etc. This now seems
I love that about this list.. you can always learn something new..
I used:
#foo#
On Mon, Dec 6, 2010 at 9:23 AM, Rick Root wrote:
>
> How about this...
>
>
>
> seems to work.
>
>
>
~|
Order the Adobe Coldfusion Ant
How about this...
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
ListRest(yourList,"/")
~|
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:33
listrest(listlast(thestring, "."), "/\") should give you
'var1/var2/var3/var4'
Azadi
On 06/12/2010 23:06 , Robert Harrison wrote:
> I have a string like this:
> thislocation/thisdir/thissite/thispage.cfm/var1/var2/var3/var4
>
> I want to split the string to get just that data that follows ".c
I have a string like this:
thislocation/thisdir/thissite/thispage.cfm/var1/var2/var3/var4
I want to split the string to get just that data that follows ".cfm/", which
would be var1/var2/var3/var4.
Tried all the list function I can think of, but that's not the right approach.
How can all get
9 matches
Mail list logo