Java Regex replace : and / except the domain name in the url to white space
<p>I have a long string, including lots of <code>:</code> and <code>/</code>. It also includes urls.</p>

<p>I want to replace all <code>:</code> and <code>/</code> but the domain name (e.g., <code>http://example.com</code>) of the url's to white space.</p>

<p>So <code>link:http://example.com/test/page.html</code> will become <code>link http://example.com test page.html</code>.</p>

<p>I tried <code>replaceAll("[://]", " ")</code> but it also replaces <code>:</code> and <code>/</code> in <code>http://example.com</code> to white space.</p>