Navigation

    Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Need some Help with Filtering out my Text

    Help wanted · · · – – – · · ·
    2
    3
    1824
    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 Miller
      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 Frank 1 Reply Last reply Reply Quote 0
      • Claudia Frank
        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 Miller
          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
          Copyright © 2014 NodeBB Forums | Contributors