in reply to Regex help

Please tell me how to select only two levels from the above url's

Be careful with this; many sites' terms of service prohibit web scraping. In short, though, there's no need to try to write a regexp to conform to the (rather more complicated than you might think) URI specification. Just use URI.