• Login
Community
  • Login

Adding a textstring to different urls

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
3 Posts 2 Posters 2.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.
  • D
    dario33
    last edited by dario33 Apr 24, 2016, 12:14 PM Apr 24, 2016, 12:12 PM

    Dear community, i have following probs:

    1. I have a large column with webadresses in this kind (example):

    https://www.webadress.com/directory1/prodirectory1/adapro/
    https://www.webadress.com/directory1/prodirectory1/admipt/
    https://www.webadress.com/directory1/prodirectory1/arasio/
    https://www.webadress.com/directory1/prodirectory1/atrent/
    https://www.webadress.com/directory1/prodirectory1/artre/
    https://www.webadress.com/directory1/prodirectory1/ballyer/
    …
    …
    …

    Now i need these all with the addition ‘webtext_preview.html’ , so that it looks like that:

    https://www.webadress.com/directory1/prodirectory1/adapro/webtext_preview.html
    https://www.webadress.com/directory1/prodirectory1/admipt/webtext_preview.html
    https://www.webadress.com/directory1/prodirectory1/arasio/webtext_preview.html
    https://www.webadress.com/directory1/prodirectory1/atrent/webtext_preview.html
    https://www.webadress.com/directory1/prodirectory1/artre/webtext_preview.html
    https://www.webadress.com/directory1/prodirectory1/ballyer/webtext_preview.html
    …
    …
    …

    1. Is it possible to open a webadress or a column of webadresses (like above) in IE
      directly out of Notepad++?

    How can i manage this - can you help me please? TIA!

    1 Reply Last reply Reply Quote 0
    • G
      gerdb42
      last edited by Apr 25, 2016, 7:40 AM

      1. in Search&Replace activate “Regular Expressions”. Make sure “. matches \r and \n” is NOT checked. Search for “^(.*/)$”. Replace with “\1webtext_preview.html”

      2. In Options->Preferences->Misc. make sure “Clickable Links” is activated. If you just activated the Option, reload your file. A double click on a Link will open it in your default browser. But note that this Option will slow down loading of large files, so you may want to only activate this when needed.

      1 Reply Last reply Reply Quote 2
      • D
        dario33
        last edited by Apr 25, 2016, 2:13 PM

        Hi gerdb42, this works PERFECT - thank you sooo much for your effort!!

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