#1 2015-11-05 11:22

bdpq
Member
Registered: 2015-11-05
Posts: 7

regular expression look ahead?

Hi,

I was trying to use look ahead in regular expression:

.*?(?=ABC)

However Renamer gave me an error TRegExpr(comp) Unrecognized Modifier...

Is look ahead, look behind implemented in Renamer?


Thank you!

Offline

#2 2015-11-05 11:45

den4b
Administrator
From: den4b.com
Registered: 2006-04-06
Posts: 3,367

Re: regular expression look ahead?

Look-ahead and look-behind extensions are not implemented in the RegEx engine used in ReNamer.

All supported features are documented here:
http://www.den4b.com/wiki/ReNamer:Regular_Expressions

Offline

#3 2015-11-05 14:37

bdpq
Member
Registered: 2015-11-05
Posts: 7

Re: regular expression look ahead?

thanks~  I can work around it; however, any plan to include this feature in the future?

Offline

#4 2015-11-05 16:41

den4b
Administrator
From: den4b.com
Registered: 2006-04-06
Posts: 3,367

Re: regular expression look ahead?

bdpq wrote:

any plan to include this feature in the future?

Not at the moment. The RegEx engine is a 3rd party package, so it will have to be implemented upstream.

Offline

#5 2018-10-31 00:56

eR@SeR
Senior Member
From: Земун, Србија
Registered: 2008-01-23
Posts: 353

Re: regular expression look ahead?

Hi Denis,

I also tried to use non-capturing group ?: but it is not supported. Is there any other RegEx library that can be used in ReNamer to support look ahead/behind assertions and non-capturing group?


TRUTH, FREEDOM, JUSTICE and FATHERLAND are the highest morale values which human is born, lives and dies for!

Offline

Board footer

Powered by FluxBB