Community
    • Login

    save hyperlinks in large html which are underlined?

    Scheduled Pinned Locked Moved General Discussion
    3 Posts 2 Posters 433 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.
    • water buoyW Offline
      water buoy
      last edited by

      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)

      Alan KilbornA 1 Reply Last reply Reply Quote 0
      • Alan KilbornA Offline
        Alan Kilborn @water buoy
        last edited by Alan Kilborn

        @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.

        Alan KilbornA 1 Reply Last reply Reply Quote 1
        • Alan KilbornA Offline
          Alan Kilborn @Alan Kilborn
          last edited by

          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

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • First post
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors