Closed TimvanSteenbergen closed 7 years ago
Like www.amazon.co.uk -> now results in 'co.uk' instead of 'amazon.co.uk'
Solve with this regex: (.[^.]{0,2})(.[^.]{0,2})(.$)|(.[^.])(.*$)
See http://stackoverflow.com/questions/25942552/get-second-level-domain-name-from-url
Like www.amazon.co.uk -> now results in 'co.uk' instead of 'amazon.co.uk'