Click to See Complete Forum and Search --> : Hyperlink Text


marker
March 16th, 2005, 12:13 PM
Is there a way to hyperlink the text wherever URL address is found.

Like e.g. somebody typed

Please go visit the http://www.yahoo.com for weather information.

Now, I would like to hyperlink just the URL address of "http://www.yahoo.com" in ASP.Net (C#).

Thanks in Advance
M

marker
March 16th, 2005, 04:13 PM
I figured it out.

Looks like there is no built in C# function that look for all URL and put hyperlink on it.

I compare the text from the database with regular expression and put the link on it.

If I have any problem, I will be back.

Somebody need code, I will paste it later.

M

hspc
March 17th, 2005, 03:12 AM
Hi
check this :
http://www.regexlib.com/DisplayPatterns.aspx?cattabindex=1&categoryId=2
and
http://www.regexlib.com/REDetails.aspx?regexp_id=622
they may help you..