<?php preg_match( "@^(?:http://)?([^/]+)@i", "http://www.php.net/index.htrnl", $matches); $match = $matches[l]; echo $match;
You have javascript disabled. You will not be able to edit any code.