<p>i need a Regular Expression to convert a a string to a link.i wrote something but it doesnt work in asp.net.i couldnt solve and i am new in Regular Expression.This function converts (bkz: string) to (bkz: show.aspx?td=string)</p>

<pre><code>Dim pattern As String = "&amp;lt;bkz[a-z0-9$-$&amp;-&amp;.-.ö-öı-ış-şç-çğ-ğü-ü\s]+)&amp;gt;"
Dim regex As New Regex(pattern, RegexOptions.IgnoreCase)
str = regex.Replace(str, "&lt;a href=""show.aspx?td=$1""&gt;&lt;font color=""#CC0000""&gt;$1&lt;/font&gt;&lt;/a&gt;")
</code></pre>

Your regexp is in trouble because of a ')' without '('
Would:
```
```
&lt;bkz:\s+((?:.(?!&gt;))+?.)&gt;
```
```
work better ?
The first group would capture what you are after.