Title:
[cfclient] refind - multiple line mode not supported from string in regular expressions in javascript like it is supported in java
| View in TrackerStatus/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): / ext-user (Milan Chandna)
Created: 12/07/2012
Components: Mobile Support, Data Structure
Versions: 11.0
Failure Type: Incorrect w/Workaround
Found In Build/Fixed In Build: 283472 / CF11 Update5
Priority/Frequency: Minor / Very few users will encounter
Locale/System: ALL / Mac 10 All,Win XP All
Vote Count: 0
Problem:
In java regular expression you can enable multiple line mode from pattern string itself
If the pattern starts from (?m), then in java/coldfusion multiple line flag is enabled to search
refind uses regular expression and this flag in supported in coldfusion but it is not supported in ColdFusion
Snippet:
<cfoutput>#reFind("(?m)^two", "one#chr(10)#two#chr(10)#three/rfour")#</cfoutput>
expected output:
5
actual output:
giving error in regex
Method:
Result:
Expected:
Workaround:
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3401939
External Customer Info:
External Company:
External Customer Name:
External Customer Email:
Attachments:
Comments: