If somebody knows how to work with ReGex, please helpme.
I have a file with some thousands of empty lines and I need to ad to every empty line an incremental number. First empty line to have number 1, second empty line to have number2, etc.
The every empty line is repeated, so I have two empty lines, and I want to insert the number just to the second empty line.
some text
more text
even more text
to transform into yhis:
1
some text
2
more text
3
even more text
Unfortunately Regex is just to complicated and cant find any documentation regarding to this subject.