Per split potrebbe bastarti explode() o str_split().
Per preg_match invece la sintassi è del tipo preg_match ( string pattern, string subject [, array &matches [, int flags [, int offset]]] )
Codice PHP:
// get host name from URL
preg_match('@^(?:[url]http://[/url])?([^/]+)@i'"http://www.php.net/index.html"$matches);
$host $matches[1];