Replace string with string-1

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
textpadquestion
Posts: 8
Joined: Mon Jul 19, 2010 5:20 pm

Replace string with string-1

Post by textpadquestion »

Hi, I haven't been able to find the answer to my question in one of the existing topics....

I have the following data

T02
T03
T05
T09

And I'd like to use a regular expression find and replace to turn it into

T01
T02
T04
T08

Is this possible?
User avatar
woho
Posts: 100
Joined: Tue Sep 02, 2003 9:12 am
Location: Steyr/Austria
Contact:

Post by woho »

As far as I know RegExpr are not capable of calculating.
Probably your 4 examples are not all the numbers you'd like to replace.
If there are not too many other numbers you could record a macro replacing each of the numbers starting with the lowest.
02 with 01 then
03 with 02 asf

Regards
Wolfgang
Post Reply