title: how to set multiple parameter in preg_replace in php
body: <p>With the use of <code>preg_replace()</code> I want to change string of 
  <code>http://www.vaidehielink.com/</code> to  <code>www.vaidehielink.com</code>.</p>
  
  <p>I have succeeded to get result of <code>www.vaidehielink.com/</code> with the following code:</p>
  
  <pre><code>$str = "http://www.vaidehielink.com/";
  $pattern= '(http://)';
  $copy_date = preg_replace($pattern, "", $str);
  </code></pre>
  
  <p>But I am looking for a pattern to remove the trailing <code>/</code></p>