reMatchNoCase empty results array

on lucee 5 and

this returns an EMPTY array

cfdump var="#reMatchNoCase(’^[0-9a-z]{2,17}$’, ‘r’ )#" />

but this returns - Array with 1 empty element.
cfdump var="#reMatchNoCase(’^[0-9a-z]{0,17}$’, ‘’ )#" />

Which is correct behavior?

on our
lucee ver
jvm 1.8.0_181-b13

second case returns an ampty array (with 0 elements).

what is the designed result please

The second case returns an empty string in due to this regression in 5.3.8

The ticket was fixed in 5.3.9 & 5.3.10

1 Like