Ahh... I was REALLY hoping you were right about that. That would have been
great. In any event, I learned something new about refind() so thanks! I'll
always think of you and the time we shared in this thread when I use it.
hehe

As for running the regex twice... Since looping a space delimited list would
make ME weep... this is the only other way I could think of
 
<cfset txt = "this is a test testId67Text more text more text testId49Text
more text testId54Text more text testId56Text" /> 
<cfset nums = arrayNew(1) />
<cfloop condition="1 is 1">
        <cfset arrString = refind('testId(\d+)Text', txt, 1, true) />
        
        <cfif val(arrString['len'][1]) is 0>
                <cfbreak />
        <cfelse>
                <cfset nums[arrayLen(nums)+1] = mid(txt,
arrString['pos'][2], arrString['len'][2]) />
                <cfset txt = removechars(txt, arrString['pos'][1],
arrString['len'][1]) />
        </cfif>
</cfloop>
<cfdump var="#nums#" />


..:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade to ColdFusion 8 and integrate with Adobe Flex
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292755
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to