Regular expression for ipv6 address
<p>I have one itcl file where my regular expression is getting picked correctly for <code>ipv4</code> address but the same it is not working for <code>ipv6</code> address.</p>

<p>I have my expression as:</p>

<pre><code>REGEXP [^:]+://[^:/]+(:[0-9]+)?/?  
</code></pre>

<p>which is reading correctly for something like:</p>

<pre><code>https://10.77.56.89
</code></pre>

<p>but the same i want to do it for something like:</p>

<p><code>https://[2001:1:1:43::115]/ucmuser</code>  which is showing incorrect format.</p>