Looks like the difference is simply what Lucee returns in the match array. Is there a reason I’m not thinking of why this might be preferred?
<cfscript> writeOutput(arrayToList(reFind("r(test)r", "rtestr", 1, true).match)) </cfscript>
Lucee (184.108.40.206): rtestr,rtestr
ACF (at least CF2016-2021): rtestr,test
I assume Lucee is using a slightly different regex engine than ACF, but this appears to be an incorrect result. Looks like we have a resolution in this case for our needs (actually not sure).
teststr = “test r3291048r”;
writeOutput(arrayToList(reFind(“r(.*?)r”, teststr, 1, true).match));