With the use of preg_replace() I want to change string of
http://www.vaidehielink.com/ to www.vaidehielink.com.
I have succeeded to get result of www.vaidehielink.com/ with the following code:
$str = "http://www.vaidehielink.com/";
$pattern= '(http://)';
$copy_date = preg_replace($pattern, "", $str);
But I am looking for a pattern to remove the trailing /
url_parsefunction instead of your own code. (Of course, if you're just practicing your regular expressions, then go ahead...)