tracker issue : CF-3737517

select a category, or use search below
(searches all categories and all time range)
Title:

CFCLIENT: datastructure: functions: ReFind : Using ReFind for regex having groups gives unexpected output

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): / ext-user (Anuj Nawani)

Created: 04/05/2014

Components: Mobile Support, Data Structure

Versions: 11.0

Failure Type:

Found In Build/Fixed In Build: 289635 / CF11 Update5

Priority/Frequency: Normal / All users will encounter

Locale/System: English / Windows 7 64-bit

Vote Count: 0

Listed in the version 11.0.05.293506 Issues Fixed doc
Code snippet:

<div id="actual_4" class="actual">
<cfclient>
<cfset mainstring = "123 ABC 456 ABC 789? Paraguay for $99 airfare!#chr(13)#111 XYZ 222 XYZ 333? Paraguay for $99 airfare!">
<cfset pattern1 = "([0-9]{2,5}).([A-Z]{2,})">
<cfset returnedstruct1 = reFind(pattern1,mainstring,1,true)>
<cfoutput>#returnedstruct1.pos[3]#</cfoutput>
</cfclient>
</div>

Expected:  5
Actual: 1

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3737517

External Customer Info:
External Company:  
External Customer Name:  
External Customer Email:

Attachments:

Comments:

Issue is fixed. Hence, closing this bug. (Comment added from ex-user id:prk)
Comment by Adobe D.
12838 | January 19, 2015 01:30:11 AM GMT
The fix for this bug is available in the pre-release build of ColdFusion 11 Update 5
Comment by CFwatson U.
12839 | February 20, 2015 09:27:46 AM GMT
Verified this is fixed in CF11 Update 5 (build 11,0,05,293506). Thanks!, -Aaron
Comment by External U.
12840 | November 23, 2015 05:39:56 PM GMT