• Login
Community
  • Login

Replace partial text

Scheduled Pinned Locked Moved General Discussion
3 Posts 2 Posters 277 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.
  • P
    Panagiotis Alexoula
    last edited by Dec 20, 2020, 8:36 PM

    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 Reply Last reply Reply Quote 0
    • T
      Terry R
      last edited by Dec 20, 2020, 8:44 PM

      @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

      P 1 Reply Last reply Dec 20, 2020, 8:55 PM Reply Quote 3
      • P
        Panagiotis Alexoula @Terry R
        last edited by Dec 20, 2020, 8:55 PM

        @Terry-R Yes!! Thats is thanks mate

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