REFind/NoCase(returnsubexpressions=true) doesn't return subexpressions when regex engine set to Java.

Description

Run this code

And you'll get 3 match sets (len, match, pos) for "foo","f","oo", as expected.

Set Application's regex engine to Java

Run this code again

And you only get one match set for "foo".

Environment

Windows 10, IIS

Attachments

1

Activity

Show:

Pothys - MitrahSoft 9 August 2022 at 08:17

I've checked this ticket with the fixed versions. Now the refind/reFindnocase() returns result as expected with java regex engine.

Zac Spitzer 5 August 2022 at 15:56

Pothys - MitrahSoft 8 April 2022 at 08:25

I've added a testcase and created a separate PR for 5.3:

Zac Spitzer 7 April 2022 at 18:11

can you point that at 5.3 and add a test case?

Pothys - MitrahSoft 7 April 2022 at 13:47
Edited

The PR added in the ticket solves this ticket too

Pull Request:

Fixed

Details

Assignee

Reporter

Priority

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

Sprint

Affects versions

Created 21 May 2021 at 19:25
Updated 9 August 2022 at 08:17
Resolved 9 August 2022 at 08:17