8 9 10
# File 'lib/mls/webpage.rb', line 8 def name url.match(/^(?:https?:\/\/)?(?:www\.)?([^\/]+)/)[1] end