regex to match everything except protocol from url
<p>I have the following regex pattern:
<code>(?:http.?:\/\/)</code></p>

<p>This matches the protocol component from a web url, I want a regex to do the opposit, to match everything except the protocol, so far my every attempt has not worked at all.</p>

<p>Becuase ultimatly what I want to do is check if two urls are the same reguardless of protocol, so I can do:</p>

<pre><code>if url_1[regex] == url_2[regex]
</code></pre>