RegEx Math?

A swapping-ground for Regular Expression syntax

RegEx Math?

Postby CovertDad » Tue Sep 13, 2016 3:51 pm

Is there any way in BRU to do math with regex?

For example, I have the following:

filename_abc_01
filename_abc_01_1
filename_abc_01_2

I'd like to get the following:

filename_abc_01
filename_abc_02
filename_abc_03

If I could use the following RegEx to get matches

(.*)01_(\d)

Then I could, in theory, rename to

\1.0[\2 + 1]

But I don't think there's a way to do this easily. Please tell me I'm wrong!
CovertDad
 
Posts: 3
Joined: Tue Sep 13, 2016 3:48 pm

Re: RegEx Math?

Postby Admin » Wed Sep 14, 2016 1:51 am

Hello,

Math can be used in a JavaScript renaming function in Special (14).

thanks
Admin
Site Admin
 
Posts: 2343
Joined: Tue Mar 08, 2005 8:39 pm


Return to Regular Expressions