<?php $url = "https://mail.google.com/mail/u/1/#inbox"; $regexp = "^/(https?\:\/\/)?([a-zA-Z\_\.\-]+)\/"; preg_match($regexp, $url, $matches); var_dump($matches);
You have javascript disabled. You will not be able to edit any code.