Can I do this using notepad++ ?
Bnnr - Details :
Name : Top90
Size : 468 x 60
file : https://i-d.ir/ad/banners/gif/2014/t/top90-468x60.gif
Telegram : @BannerDesigner
Phone : +989014131211
Bnnr - Details :
Name : Frootel
Size : 468 x 60
file : https://i-d.ir/ad/banners/gif/2014/f/frootel-468x60.gif
Telegram : @BannerDesigner
Phone : +989014131211
To
12 - Bnnr - Details :
Name : Top90
Size : 468 x 60
file : https://i-d.ir/ad/banners/gif/2014/t/top90-468x60.gif
Telegram : @BannerDesigner
Phone : +989014131211
13 - Bnnr - Details :
Name : Frootel
Size : 468 x 60
file : https://i-d.ir/ad/banners/gif/2014/f/frootel-468x60.gif
Telegram : @BannerDesigner
Phone : +989014131211
For example starting point is 12 ,
So i want to add increment counter for each specific phrase.
2
Answers
Look for an existing answer before posting, please.
Notepad++ incrementally replace
TL;DR – in notepad++ no, you cannot, but you can in Sublime or TextPad etc.
Yes, this can be done within current funcionality and without requiring extra plugins or tools.
You’ll get this result
Now we will remove the numbers that are not needed. Launch search and replace. Mark the ‘regular expressions’ and Search:
^d++(?!Bnnr - Details)
, Replace by(nothing)
. You will get:Now, fix the first line. Search
^(d++)(?=Bnnr - Details)
, replace by1 -
to get the final result:Bear in mind that you can merge steps 4 & 5 within a single click using notepad macros. So you can apply the same thing later more easily. For example: