protected function normalizeUrl() { $this->url->stripQueryString(); if (preg_match('~/([0-9]{5,12})/?$~i', $this->url, $matches)) { $this->url = new \Embera\Url('http://vimeo.com/' . $matches['1']); } }