Page 1 of 1

Can I add number succesions?

Posted: Wed Nov 17, 2010 8:43 pm
by Rikardov
I have a lot of lines like this

Code: Select all

xxxxxx
<caption></caption>
xxxxxx
<caption></caption>


And I want to enumerate all my items successively

so I have

Code: Select all

xxxxx
<caption>1</caption>
xxxxx
<caption>2</caption>
etc
Is there a way to do it?

Thank you very much in advance.

Posted: Wed Nov 17, 2010 10:53 pm
by ben_josephs
Find what: <caption></caption>
Replace with: <caption>\i</caption>

[X] Regular expression

Replace All