How to convert plain text to html hyperlink in java?
<p>I am using the current expression to convert plain text hyperlink like with http or https to html hyperlinks</p>

<pre><code>String pattern = "(?:https|http)://([^\\s\\|]+)";
</code></pre>

<p>However in the message content that will go through this regular expression pattern i have content like <code>[video]http://www.yahoo.com[video].</code></p>

<p>For this kind of content in between the two video brackets. I do not want it to be converted to html hyperlink because it will be displayed on the page.</p>

<p>How to resolve this issue?</p>
