string a=TextBox1.Text;
Regex urlregex = new Regex(@" http://([/w-]+/.)+[/w-]+(/[/w- ./?%&=]*)?",
RegexOptions.IgnoreCase);
System.Text.RegularExpressions.MatchCollection mm= urlregex.Matches(a);
for(int i=0;i<mm.Count;i++)
{
a=a.Replace(mm[i].Value,"<a href=/""+mm[i].Value+"/">"+mm[i].Value+"</a>");
}
Response.Write(a);
Regex urlregex = new Regex(@" http://([/w-]+/.)+[/w-]+(/[/w- ./?%&=]*)?",
RegexOptions.IgnoreCase);
System.Text.RegularExpressions.MatchCollection mm= urlregex.Matches(a);
for(int i=0;i<mm.Count;i++)
{
a=a.Replace(mm[i].Value,"<a href=/""+mm[i].Value+"/">"+mm[i].Value+"</a>");
}
Response.Write(a);