Notepad++ regex by adding number in replacing
#1

How can I do that if an object is replaced multiple times the number adds in it. For example
pawn Код:
LobbyObject[8]
I use it to replace if it is replace once it adds
pawn Код:
LobbyObject[8]
But next times it is replaces another variable it should replace it by
pawn Код:
LobbyObject[9]
then next time
pawn Код:
LobbyObject[10]
Reply
#2

you can't
Reply
#3

http://stackoverflow.com/questions/7...ntally-replace

This might help
First replace with a constant index that has the maximum needed number of digits, then proceed as described on the link. This wont work if the lines arent directly in a row however.
Reply
#4

Quote:
Originally Posted by Mauzen
Посмотреть сообщение
http://stackoverflow.com/questions/7...ntally-replace

This might help
First replace with a constant index that has the maximum needed number of digits, then proceed as described on the link. This wont work if the lines arent directly in a row however.
thanks but this won't help me anyway i did it with a long time consuming way.

Edit it just got use full coz i need this to add numbers in line today
Reply
#5

Notepad++ has "macros", you can use it to record yourself doing thing once, then just play it and it'll repeat as many times as you want. Though I don't know if there's possiblilty to increase a number, in sublime I had to download a plugin for that...
Reply
#6

thanks
Reply
#7

You can also install the TextFX plugin if you don't have it already. Then use TextFX > Tools > Insert lines numbers.
Reply
#8

Quote:
Originally Posted by Vince
Посмотреть сообщение
You can also install the TextFX plugin if you don't have it already. Then use TextFX > Tools > Insert lines numbers.
Thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)