<?php $foo = 'http://google.com?omg=wtf'; echo preg_replace('/(http|https):\/\/(google.com)/is', 'https://$2', $foo);
You have javascript disabled. You will not be able to edit any code.