Title:
CFCLIENT: datastructure: functions: ReFind : Using ReFind for regex having groups gives unexpected output
| View in TrackerStatus/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
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: