title: preg_replace for a specific URL containing parameters
body: <p>I'm trying to replace the session ID # of a list of URLS</p>
  
  <p>Ex: <a href="http://www.yes.com/index.php?session=e4bce57bc39f67bebde0284f4c2ed9ba&amp;id=1234" rel="nofollow">http://www.yes.com/index.php?session=e4bce57bc39f67bebde0284f4c2ed9ba&amp;id=1234</a></p>
  
  <p>I'm trying to get rid of the <code>session=e4bce57bc39f67bebde0284f4c2ed9ba</code> bit and just keep the <code>http://www.yes.com/index.php?id=1234</code> bit.</p>
  
  <p>I'm attempting to use:</p>
  
  <pre><code>preg_replace('&amp;\bhttp://www\.yes\.com/(?:index\.php(?:\?id(?:=[]\d!"#$%\'()*+,./:;&lt;=&gt;?@[\\\\_`a-z{|}~^-]*+)?&amp;i', $subject, $regs)) 
  </code></pre>
  
  <p>But it isn't work. Any help would be appreciated.
  Thanks!</p>