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