<?php $url = 'http://www.google.co.m'; preg_match('/(.*):\/\/.*/', $url, $match); print_R($match);
You have javascript disabled. You will not be able to edit any code.