Replace Certain Words in Text With Link


<p>I've a text like: <code>Added updates system. (Issue #20) (Alex)</code> and several others with the same format.</p>

<p>I want to replace <code>#20</code> to a link where I use 20 in the link. For example:</p>

<pre class="lang-html prettyprint-override"><code>Added updates system. (Issue #20) (Alex)
</code></pre>

<p>should be echo'ed like:</p>

<pre class="lang-html prettyprint-override"><code>Added updates system. (Issue &lt;a href="http://tracker.website.com/view.php?id=20"&gt;#20&lt;/a&gt;) (Alex)
</code></pre>

<p>The text is a whole, it's not parts. And I have an array of such texts that I want formatted in the same way.</p>

<p>Thanks.</p>
