|
|
How to automatically find and hyperlink URLs & Emails in a string in ASP.NET Pages with C#
How to automatically find and hyperlink URLs & Emails in a string in ASP.NET Pages with C#
|
| The Answer |
 |
I'm using this 2 regex functions in my projects : Regex urlregex = new Regex(@"(http:\/\/([\w.]+\/?)\S*)", RegexOptions.IgnoreCase | RegexOptions.Compiled);and Regex emailregex = new Regex(@"([a-zA-Z_0-9.-]+\@[a-zA-Z_0-9.-]+\.\w+)",RegexOptions.IgnoreCase | RegexOptions.Compiled);more info here http://www.codeproject.com/KB/aspnet/Autohyperlink.aspx
|
|
|
|
| Similar questions | Latest questions |
| |
|
|