Regular Expression Syntax not supported

Description

In Lucee and ACF the following regular expression pattern is valid (I think it’s because it is PCRE compatable)

In BoxLang (and Java) this errors.

For compatibility with ACF/ Lucee the following should work:

Activity

Show:

Brad Wood September 16, 2024 at 6:56 PM

Yeah, that’s totally a Perl regex thing to allow arbitrary unescaped curly braces just laying around the regex without needing to escape them. Basically, if they don’t form a valid quantifier expression, perl just ignores and treats them as literals.

I have added a pre-process step to locate and auto-escape any extra curly braces to

  • reFind()/reFindNoCase()

  • reMatch()/reMatchNoCase()

  • reReplace()/reReplaceNoCase()

Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Fix versions

Priority

Sentry

Created September 16, 2024 at 2:15 PM
Updated September 16, 2024 at 6:56 PM
Resolved September 16, 2024 at 6:56 PM