How to replace a URL with a random part into a URL I want using preg_replace?
<p>I have this URL:</p>

<p><a href="http://exampleFixed.helloFixed.com/randomValues/randomValues/randomValue/randomValues/randomValues/randomValues/randomValues/randomValues/endFixed.htm" rel="nofollow">http://exampleFixed.helloFixed.com/randomValues/randomValues/randomValue/randomValues/randomValues/randomValues/randomValues/randomValues/endFixed.htm</a></p>

<p>If you see there are 9 bars from .com to .htm
And I want to replace ALL that URL to make it dissapear.
Something like this:</p>

<pre><code> &lt;?
    preg_replace ('theRegexRequired', '', $url);
 ?&gt;
</code></pre>

<p>My try but I don't know how to code so many bars:</p>

<pre><code>preg_replace('/http://exampleFixed.helloFixed.com\/(.+)\/endFixed.htm/i','',$url);
</code></pre>

<p>Thank you very much!</p>
