#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2010
    Posts
    4
    Rep Power
    0

    Validate Google Images Websites


    I've been trying to get this for a while now, but can't seem to figure it out.

    I need to search out all country domains for Google images, so:
    google.co.uk/images
    google.cn/images
    google.com/images
    etc...

    The idea is to make sure that the user is searching for images on Google. How would I find any subdomains between "google." and "/images"? (I'm not replacing the country domain, I am just checking for a valid Google image search)

    Thanks!
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Beginner (1000 - 1499 posts)

    Join Date
    Jul 2004
    Location
    Middle Europa
    Posts
    1,200
    Rep Power
    14
    a way, using 'sed'
    sed -n 's/google\.\(.*\)\/images/\1/p' inputfile
    working on Solaris[5-9], preferred languages french and C.
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2010
    Posts
    4
    Rep Power
    0
    Originally Posted by guggach
    a way, using 'sed'
    I'm using it in a javascript search. Sorry, should have specified. Will that regex still work?

IMN logo majestic logo threadwatch logo seochat tools logo