Javascript - cleaning a string with str.replace()
<p>I have a URL that can be divided in 3 parts and I want the middle one.</p>

<p>The URL is like this</p>

<p><a href="http://www.site.com/place?siteurl=" rel="nofollow">http://www.site.com/place?siteurl=</a><strong>http://www.thisIsWhatIwant.com/bla/bla/</strong>&amp;XXX</p>

<p>XXX means that the URL continues and may have a lot of characters including %, parenthesis, other ampersands, equal signs, etc...</p>

<p>I want what is in bold. I other words, to get rid of everything that is before the equal sign on siteurl= (including the equal sign) and also get rid of everything that is after the first ampersand after that, including the ampersand... so, after cleaning the URL it would become just:</p>

<p><strong>http://www.thisIsWhatIwant.com/bla/bla/</strong></p>

<p>how do I do that with Javascript's str.replace()? </p>

<p>thanks in advance</p>
