Version 4+

Advanced Renamer forum
#1 : 26/10-24 13:10
Jeffery Suan
Posts: 1
I am having troubles using all of my 3.95 renaming method lists with version 4+. I always get the error 'Invalid Regular Expression'.

From trying to isolate things, I did find a place where it says, for example:
* TRegExpr compile: unrecognized modifier (pos 14)

This led me to assume the new Version is using TRegExpr. Following that lead I found myself at https://regex.sorokin.engineer/ which contained some documentation for the library.

However, even when using specific examples listed in the documentation, such as:

Positive lookahead assertion: foo(?=bar) matches "foo" only before "bar", and "bar" is excluded from the match.

This still produced * TRegExpr compile: unrecognized modifier (pos 09).

So I was wondering if I could get confirmation on the flavor of Regex being used and any other insight to assist in converting method lists to work in 4+ versions.

Thank you in advance for your time.
#2 : 26/10-24 15:28
Delta Foxtrot
Posts: 312
Reply to #1:

That would certainly be useful information. I've always avoided lookaround in ARen because I could never remember what worked and what didn't in v.3.x
:)