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