anyone know how to “discover” hyperlink in some text and convert that hyperlink in html hyperlink with asp.net (or javascript).
For example, if a user enter this text:
You found it at http://www.foo.com
How can i found and convert in html like :
You found it at <a href='http://www.foo.com'>http....</a>
?
Thanks in advance
You should be able to use Regular Expressions for this easily enough.
Regular expression taken from here; http://www.geekzilla.co.uk/View2D3B0109-C1B2-4B4E-BFFD-E8088CBC85FD.htm
Use of MatchEvaluator based on this example; http://msdn.microsoft.com/en-us/library/system.text.regularexpressions.matchevaluator(v=VS.71).aspx