• Login
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.
  • A
    Aaron Miller
    last edited by Jan 20, 2016, 11:21 PM

    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 :)

    C 1 Reply Last reply Jan 20, 2016, 11:42 PM Reply Quote 0
    • C
      Claudia Frank @Aaron Miller
      last edited by Claudia Frank Jan 20, 2016, 11:43 PM Jan 20, 2016, 11:42 PM

      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
      • A
        Aaron Miller
        last edited by Jan 20, 2016, 11:46 PM

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

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