Hi Steve, if quickly, I think the approach can be:

1. Find the first position in string
2. If exists at least something then you can start loop using condition
statement by increment prior position +1

for example:
************************************************************************
<cfset content = "content test content test content test" />
<cfset strSearch = "test" />
<cfset initPos = FindNoCase(strSearch,content,1) />
<cfif initPos>
<cfset chk = initPos>
<cfloop condition="chk">
<cfset pos = FindNoCase(strSearch,content,(chk+1)) />
<cfset chk = pos>

</cfloop>
</cfif>
***********************************************************************
it just a thoughts, I'm sure probably it can be done by diff way as well.

Regards,
Misha

On Fri, Jul 18, 2008 at 10:01 AM, Steve Johnson <[EMAIL PROTECTED]>
wrote:

> I want to search a string for a particular sub-string. However, if there
> are
> more than one instance of that sub-string, I want to retrieve the last
> instance. I have no problems searching, but it stops after finding the
> first
> instance. Can anyone help me with this? Is this a job for regular
> expressions?
>
> Thank you,
> Steve Johnson
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Newbie/message.cfm/messageid:3844
Subscription: http://www.houseoffusion.com/groups/CF-Newbie/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15

Reply via email to