Community
    • 登入

    Replace partial text

    已排程 已置頂 已鎖定 已移動 General Discussion
    3 貼文 2 Posters 338 瀏覽
    正在載入更多貼文
    • 從舊到新
    • 從新到舊
    • 最多點贊
    回覆
    • 在新貼文中回覆
    登入後回覆
    此主題已被刪除。只有擁有主題管理權限的使用者可以查看。
    • Panagiotis AlexoulaP
      Panagiotis Alexoula
      最後由 編輯

      Hello there.
      I have a difficult task to complete:

      I have 1041 links like this: site_old com / viewtopic.php?id=xxxxx
      The xxxxx is a number in all links. So the site changed the domain name and now i want to replace everything from “=” and back in ALL 1041 links.
      So the “site_old com/viewtopic.php?id=xxxxx” change to site_new com/viewtopic.php?id=xxxxx"

      Any chance to do this?

      1 條回覆 最後回覆 回覆 引用 0
      • Terry RT
        Terry R
        最後由 編輯

        @Panagiotis-Alexoula said in Replace partial text:

        So the “site_old com/viewtopic.php?id=xxxxx” change to site_new com/viewtopic.php?id=xxxxx"

        This looks like it doesn’t even need to be a regular expression. If you select the text being replaced (highlight it with the mouse), then select the Replace function, the find what field will be populated with the highlighted text. Make sure the search mode is “normal”. In the Replace with field type the new replacement text and click on “Replace all”.

        That is unless you have additional information which changes the whole question.

        Terry

        Panagiotis AlexoulaP 1 條回覆 最後回覆 回覆 引用 3
        • Panagiotis AlexoulaP
          Panagiotis Alexoula @Terry R
          最後由 編輯

          @Terry-R Yes!! Thats is thanks mate

          1 條回覆 最後回覆 回覆 引用 1
          • 第一個貼文
            最後的貼文
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors