1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

notepad++ - remove lines with certain text?

Discussion in 'Black Hat SEO' started by jb2008, Dec 4, 2010.

  1. jb2008

    jb2008 Senior Member

    Joined:
    Jul 15, 2010
    Messages:
    1,158
    Likes Received:
    972
    Occupation:
    Scraping, Harvesting in the Corn Fields
    Location:
    On my VPS servers
    Hey guys,

    I am trying to harvest Blogengine blogs with a certain footprint, but the problem is there are a few unwanted Wordpress and MT blogs coming into the text file. In my harvested txt file, I want only lines ending in .aspx.

    So, in notepad++ , how do I remove all lines ending in a certain piece of text , i.e. .aspx . At the moment I can only remove the .aspx , not the entire line it is on.

    Help would be greatly appreciated!!!

    JB
     
  2. jodys

    jodys BANNED BANNED

    Joined:
    Feb 10, 2010
    Messages:
    174
    Likes Received:
    131
    Code:
    find:
    ^.*aspx.*$
    
    replace:[FONT=verdana]
    
    Replace with nothing
    [/FONT]
     
    • Thanks Thanks x 1
  3. jb2008

    jb2008 Senior Member

    Joined:
    Jul 15, 2010
    Messages:
    1,158
    Likes Received:
    972
    Occupation:
    Scraping, Harvesting in the Corn Fields
    Location:
    On my VPS servers
    Oh! There is a legend in the building :p
     
  4. sfidirectory

    sfidirectory Senior Member

    Joined:
    Mar 29, 2010
    Messages:
    899
    Likes Received:
    483
    Occupation:
    Web developer/BTC enthusiast
    Location:
    php artisan make:migration
    Home Page:
    I could build a Java program that does that, but looks like your problem is sorted :)