Fixed
Details
Assignee
Michael OffnerMichael OffnerReporter
Bernhard DöblerBernhard DöblerPriority
NewLabels
Fix versions
New Issue warning screen
Before you create a new Issue, please post to the mailing list first https://dev.lucee.org
Once the issue has been verified, one of the Lucee team will ask you to file an issue
Details
Details
Assignee
Michael Offner
Michael OffnerReporter
Bernhard Döbler
Bernhard DöblerPriority
Labels
Fix versions
New Issue warning screen
Before you create a new Issue, please post to the mailing list first https://dev.lucee.org
Once the issue has been verified, one of the Lucee team will ask you to file an issue
Created 25 June 2020 at 21:53
Updated 2 July 2021 at 09:57
Resolved 11 December 2020 at 14:04
I have a simple line of code, a call to reFindNoCase
<cfdump var="#reFindNoCase( "^S(\d\d)$", "S21", 1, true )#">
The result of the call is a struct that contains three members: pos, len and match.
Match is an array. The first element contains the whole match of the regular expression. That is fine.
The second element contains the whole expression, as well. That's wrong. It's supposed to contain the matched subexpression which in the above case is number 21.
I execute the exact line of code on an Adobe ColdFusion 2018 server, which gives the subexpression and not the whole expression.
You can try it here: https://trycf.com/scratch-pad/pastebin?id=HYJNF8mH