Community
    • Login

    Need some Help with Filtering out my Text

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 2 Posters 2.1k 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.
    • Aaron MillerA
      Aaron Miller
      last edited by

      I have a screenshot here: http://prntscr.com/9sqct4
      I want to remove everything that comes before “|” as well as the “|” itself. Or keep everything that has http:// and after.
      I’m very new to notepad ++ and would love some help on this issue! Thank you :)

      Claudia FrankC 1 Reply Last reply Reply Quote 0
      • Claudia FrankC
        Claudia Frank @Aaron Miller
        last edited by Claudia Frank

        Hello Aaron-Miller

        open replace dialog and put the following into find what:

        (.+|)(?=http.*)
        

        leave replace with empty.
        Select Regular expression in Search mode and press replace all.
        Keep a copy of the original data for safety ;-)

        What it does is

        .* look for every char until a | appears and if http follows, then make it a group
        to be reported back (known as match).

        As replace with hasn’t anything in it this group will be replacey with nothing.

        Hope this makes sense.

        Cheers
        Claudia

        Btw. I assume that | appears only once and directly before http

        1 Reply Last reply Reply Quote 0
        • Aaron MillerA
          Aaron Miller
          last edited by

          I do understand. It worked. Thank you so much Claudia!

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