Not sure from your message what exactly is happening, but
try this statement for your REFind()
<cfif REFind("^\d{9}-\d{3}$",i) gt 0>
Steve Brownlee
http://www.fusioncube.net/
----- Original Message Follows -----
From: "Scott Stewart" <[EMAIL PROTECTED]>
To: CF-Talk <[email protected]>
Subject: REFind
Date: Tue, 15 May 2007 11:21:28 -0400
> Hey all,
>
>
>
> I may not be understanding REFind properly.
>
>
>
> I have this:
>
>
>
> <cfloop list="#this.lstUIDs#" index="i" delimiters=",">
>
> <cfif REFind("^\d{9}-\d{3}$","i") is "1">
>
> <cfset psyEx = psyEx+1>
>
> <cfelse>
>
> <cfset psy = psy+ 1>
>
> </cfif>
>
> </cfloop>
>
>
>
> What's coming in is a list of UID's from a form. The UID's
> that match the pattern are ignored by an outboard
> application.
>
>
>
> Psy and psyEx are counters for an "x of y records
> exported" The outboard app only returns a text file.
>
>
>
> My traces show this:
>
>
>
> information type[11:16:50.015
> C:\Inetpub\wwwroot\psychnet\classes\ContentManagement.cfc
> @ line: 28] [2844 ms (1st trace)] - [this.lstUIDs =
> 207862004-001,303062003-001,303302003-001,307972005-001,31
> 3642005-039,315352
> 004-001,316162004-001,318502004-001,388372004-001,40565200
> 5-001,504842006-00
> 1,504972006-001,505122006-001,567792006-001,2006-13416-000
> ,2006-20801-014,20
> 06-22931-014,2006-23020-006,2006-23022-005,2006-23072-005,
> 2006-23081-010,200
> 6-23500-001,2006-23500-002,2006-23500-013,2006-23500-020]
> UID information type[11:16:50.015
> C:\Inetpub\wwwroot\psychnet\classes\ContentManagement.cfc
> @ line: 29] [2844 ms (0 ms)] - [psy = 1] psy
> information type[11:16:50.015
> C:\Inetpub\wwwroot\psychnet\classes\ContentManagement.cfc
> @ line: 30] [2844 ms (0 ms)] - [psyEx = 0] psyEx
>
>
>
> --
>
> Scott Stewart
>
> ColdFusion Developer
>
>
>
> SSTWebworks
>
> 7241 Jillspring Ct.
>
> Springfield, Va. 22152
>
> (703) 220-2835
>
>
>
> http://www.sstwebworks.com
>
>
>
>
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion MX7 by AdobeĀ®
Dyncamically transform webcontent into Adobe PDF with new ColdFusion MX7.
Free Trial. http://www.adobe.com/products/coldfusion?sdid=RVJV
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:278170
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4