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

extract subdomains from list of urls?

Discussion in 'Black Hat SEO' started by aidenhera, Apr 7, 2017.

  1. aidenhera

    aidenhera Elite Member

    Joined:
    Nov 30, 2016
    Messages:
    1,614
    Likes Received:
    283
    Gender:
    Male
    i need to extract subdomains from list of urls. i have too many urls in T1 and i decide to only take care of the ones that own whole subdomain. any quick way for that?
     
  2. MikeyMikey13

    MikeyMikey13 Senior Member

    Joined:
    May 25, 2014
    Messages:
    1,049
    Likes Received:
    265
    Use Notepad++ and regex
     
    • Thanks Thanks x 1
  3. rickydzine

    rickydzine Regular Member

    Joined:
    Jun 6, 2011
    Messages:
    434
    Likes Received:
    217
    Hmm, if you have Notepad++ you can press CTRL + H, set your then select "Regex" and enter the following code, then replace, remember to take your notepad++ off regex after.
    Code:
    .*(?<=.\w\/\w).*
    [​IMG]
     
    • Thanks Thanks x 3
  4. aidenhera

    aidenhera Elite Member

    Joined:
    Nov 30, 2016
    Messages:
    1,614
    Likes Received:
    283
    Gender:
    Male
    thanks a lot :) lowered the number from 2000 to 200, now it will be a lot easier for me to make social signals + they will spread only on my subdomains and not on whole domains that arent mine and contain other blogs.
     
  5. pressrelease

    pressrelease Power Member

    Joined:
    Jan 6, 2016
    Messages:
    661
    Likes Received:
    235
    Location:
    Disneyland
    Use excel, more easy and manageable.