• Login
Community
  • Login

save hyperlinks in large html which are underlined?

Scheduled Pinned Locked Moved General Discussion
3 Posts 2 Posters 194 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.
  • W
    water buoy
    last edited by May 15, 2020, 7:22 PM

    Hey out there;
    I was wondering , since using notepad noticed when hyperlinks (underscore characters) appear allows you to navigate www easily. I want to filter out all except these links / underscore to have only http addresse(s)? Way to do it just in notepad++? I know a few sed , grep tools , but how do you look for underscore char, different question I suppose. Tks in advance. Doug. ( water buoy)

    A 1 Reply Last reply May 15, 2020, 7:54 PM Reply Quote 0
    • A
      Alan Kilborn @water buoy
      last edited by Alan Kilborn May 15, 2020, 7:54 PM May 15, 2020, 7:54 PM

      @water-buoy

      The “underscoring” you are talking about is only visual.

      You would have to go after – via search – the text of the http addresses themselves.

      This is easier said than done, as it gets into “what is a regular expression for finding http addresses”?

      Notepad++ itself uses this, which may not be perfect (I suspect this because sometimes Notepad++ interprets URLs in my text files incorrectly, usually by “spilling over” the underlining into adjacent non-URL text):

      #define URL_REG_EXPR "[A-Za-z]+://[A-Za-z0-9_\\-\\+~.:?&@=/%#,;\\{\\}\\(\\)\\[\\]\\|\\*\\!\\\\]+"
      

      Anyway, finding the text of URLs isn’t quite what you’d want; you’d want to find non-URL text so that you can delete it.

      A 1 Reply Last reply May 15, 2020, 8:50 PM Reply Quote 1
      • A
        Alan Kilborn @Alan Kilborn
        last edited by May 15, 2020, 8:50 PM

        I just noticed that I ended my previous posting early. It should have read:

        “Anyway, finding the text of URLs isn’t quite what you’d want; you’d want to find non-URL text so that you can delete it, leaving only the desired URL text.”

        If you want further help in pursing this type of solution, please indicate that.

        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