• Login
Community
  • Login

How to add an incremenetal number increase but not on every line

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
4 Posts 3 Posters 391 Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R
    reddit mod
    last edited by Apr 26, 2022, 2:19 AM

    I am trying to make each of the 99’s in the photo below a number that will increase incrementally. I tried to use the column editor but it just add them to every single line when I only want it to be where the 99’s are. Does anyone know how I can do this?

    example.PNG

    P 1 Reply Last reply Apr 26, 2022, 2:21 AM Reply Quote 0
    • P
      PeterJones @reddit mod
      last edited by Apr 26, 2022, 2:21 AM

      @reddit-mod ,

      If you’re willing to use a plugin, install python script, and search the forum for add_1

      If not, sorry, built-in search/replace cannot count or do math

      R 1 Reply Last reply Apr 26, 2022, 2:26 AM Reply Quote 0
      • R
        reddit mod @PeterJones
        last edited by Apr 26, 2022, 2:26 AM

        @peterjones Thanks for your response. Would you be able to tell me how to install it? I am pretty new to notepad++

        N 1 Reply Last reply Apr 26, 2022, 11:29 AM Reply Quote 0
        • N
          Neil Schipper @reddit mod
          last edited by Apr 26, 2022, 11:29 AM

          @reddit-mod

          Instructions and sample usage (for a slightly different problem) here.

          If the data you’ve shown is truly the data you’re working with, you can achieve what you want with much simpler techniques. You could start with an empty file, insert a column with ascending numbers, then, either using a macro or a regex F&R, add in the rest of the (multiline) fixed text at the end of each line.

          1 Reply Last reply Reply Quote 2
          1 out of 4
          • First post
            1/4
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors