Community
    • Login

    Replacing text blocks with ToolBucket

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 3 Posters 39 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.
    • J
      JuergenBelle
      last edited by

      Hello, I am new to this forum. I am working as an IT Administrator and use Notepad++ for a long time now. Now I need a solution for replaceing text blocks in a lot of measurement files. For this I added the ToolBucket Plugin. Here is my needed change (line 147 (in this file) always starts with QE QSSTAT, rest different):
      12a11f8a-10bc-4e8e-9ee8-eb0eb858bf03-image.png
      should be replaced by
      5fad3466-c5fb-4c2c-a64c-c1a7dbeac5a1-image.png
      I tried now or 3 days, but no solution yet with regular expressions. 0 Matches or more that 200 (it is once in the file)
      Please help, thank you very much.

      h-jangraH PeterJonesP 2 Replies Last reply Reply Quote 0
      • h-jangraH
        h-jangra @JuergenBelle
        last edited by

        @JuergenBelle
        If you need to replace only this line then default find and replace works fine.
        Ctrl+h and check regular expression
        Find: QE QSSTAT.*
        Replace: your content if its same

        1 Reply Last reply Reply Quote 2
        • PeterJonesP
          PeterJones @JuergenBelle
          last edited by PeterJones

          @JuergenBelle ,

          Further to what @h-jangra said, since N++ v8.8.6, you can just paste your multi-line text into the Replace, and use the Search @h-jangra suggested, and you don’t need the plugin at all…

          If your replacement has parentheses () or dollar signs $, it might not work as you expect, so you might have to escape them, as described in the user manual (https://npp-user-manual.org/docs/searching/#substitutions)

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