Fixed
Details
Assignee
Michael OffnerMichael OffnerReporter
Julian HalliwellJulian HalliwellPriority
MinorLabels
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
Affects versions
Details
Details
Assignee
Michael Offner
Michael OffnerReporter
Julian Halliwell
Julian HalliwellPriority
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
Affects versions
Created 4 February 2015 at 09:40
Updated 17 September 2020 at 15:24
Resolved 22 July 2015 at 17:30
By default the dot metacharacter in CFML regex functions will match line breaks.
When used with `REMatch()` in Lucee, however, it does not match line breaks, even though it does with `REFind()`.
It seems that the "dotall" flag needs to be enabled in the underlying Java for `REMatch()` to make its behaviour consistent.
Test case:
REMatchTest = ArrayLen( REMatch( '.',Chr( 10 ) ) ); dump( var=REMatchTest,label="REMatchTest: Assert 1" ); REFindTest = REFind( '.',Chr( 10 ) ); dump( var=REFindTest,label="REFindTest: Assert 1" );
Previously raised against Railo 4.2.1.008 https://issues.jboss.org/browse/RAILO-3260