• Login
Community
  • Login

Replace all different numbers with a same number

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
3 Posts 2 Posters 8.8k 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.
  • S
    Stealth Fighter
    last edited by Stealth Fighter Aug 16, 2021, 5:30 AM Aug 16, 2021, 5:28 AM

    I have
    “max_lvl”: 11,
    “max_lvl”: 38,
    “max_lvl”: 8,
    and so on 488 more times
    How do I change all the number to 10?

    1 Reply Last reply Reply Quote 0
    • G
      guy038
      last edited by guy038 Aug 16, 2021, 8:42 AM Aug 16, 2021, 8:41 AM

      Hello, @stealth-fighter and All,

      First method :

      • Make a zero-length column selection, right before the numbers through all the lines to modify

      • Hit the Ctrl + Del shortcut

      • Type in the number 10

      You don’t even need to install the beloved @astrosofista’s plugin, known as BetterMultiSelection


      Second method :

      • Open the Replace dialog ( Ctrl + H )

      • SEARCH \d+

      • REPLACE 10

      • Tick, preferably, the Wrap around option

      • Select the Regular expression search mode

      • Click on the Replace All button

      Best Regards,

      guy038

      S 1 Reply Last reply Aug 17, 2021, 12:24 PM Reply Quote 2
      • S
        Stealth Fighter @guy038
        last edited by Aug 17, 2021, 12:24 PM

        @guy038 Thank you so much!

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