Using the Counter in Advanced Replace

Consider a list of items - you wish to number them sequentially.

Search <
Replacecnt": "

The list starts as

And after running the above Search and Replace on that list you get
1: Item
2: Item
3: Item
4: Item
5: Item
6: Item

< sets a flag that mark the start of a line.
cnt calls the Replace counter. In this case we wanted the count to use default values (start at 1, increment 1) so we did not need to click on the Counter in the Advanced Search and Replace dialog box to set anything.
": " is a string of literal characters (colon - space in this example) that are used just as they are.

Of course you could renumber paragraphs just as easily:

Search <<
Replacecnt": "

Was this page helpful? Please email me and/or rate this page:

If you want a reply make sure any email address will not get spam-binned!
Optional comment

Other relevant pages

Top of page

Page Information Document URI:
Page first published Monday the 1st of January, 2018
Last modified:Sun, 11 Aug 2019 09:19:14 BST
© 2017 - 2024 Richard Torrens.