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
> Subject: Re: Split String
> 
> 
> I'd use CF's underlying java core in this case, as in:
> 
> <cfset theList =
> "thislocation/thisdir/thissite/thispage.cfm/var1/var2/var3/var4" > <cfset
> theOtherPart = theList.split(".cfm") /> <cfset theLastPart =
theOtherPart[2]
> />
> 
> <cfset request.cfdumpinited = false />
> <cfdump label="theOtherPart"  var="#theOtherPart#" expand="true" />
> <cfdump label="theLastPart"  var="#theLastPart#" expand="false" />
> <cfabort />
> 
> 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 all the list function I can think of, but that's not the right
> > approach.  How can all get only the data that follows the literal ".
> > cfm/"?
> >
> > Thanks
> >
> >
> > Robert B. Harrison
> > Director of Interactive Services
> > Austin & Williams
> > 125 Kennedy Drive, Suite 100
> > Hauppauge NY 11788
> > P : 631.231.6600 Ext. 119
> > F : 631.434.7022
> > http://www.austin-williams.com
> >
> > Great advertising can't be either/or.  It must be &.
> >
> > Plug in to our blog: A&W Unplugged
> > http://www.austin-williams.com/unplugged
> >
> >
> 
> 
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> ~~~~~~~~~~~|
> 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:339851
> Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
> Unsubscribe: http://www.houseoffusion.com/groups/cf-
> talk/unsubscribe.cfm


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:339857
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to