Community
    • Login

    Massive list and massive search and replace?

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    23 Posts 7 Posters 7.5k 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.
    • Yurble VươngY
      Yurble Vương @Alan Kilborn
      last edited by Yurble Vương

      @Alan-Kilborn

      Sorry to ask and bother you. I tried to edit your py code as below, but it seems to be a wrong code. Could you advise how to correct:

      Not work:

           # FINALLY, the actual replacement!
                      editor.rereplace('\b'+find_what+'\b', replace_with)
      

      Not work 2:

           # FINALLY, the actual replacement!
                      editor.rereplace(r'\b'+find_what+'\b', replace_with)
      
      Alan KilbornA 1 Reply Last reply Reply Quote 1
      • Alan KilbornA
        Alan Kilborn @Yurble Vương
        last edited by

        @Yurble-Vương said :

        Not work 2

        This should work: editor.rereplace(r'\b'+find_what+r'\b', replace_with)

        I like how you showed initiative in trying to solve the problem yourself…and you had the right idea, you just didn’t take it far enough.

        Yurble VươngY 1 Reply Last reply Reply Quote 1
        • Yurble VươngY
          Yurble Vương @Alan Kilborn
          last edited by

          @Alan-Kilborn

          Many thanks for help

          1 Reply Last reply Reply Quote 0
          • Alan KilbornA Alan Kilborn referenced this topic on
          • First post
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors