Mike,
Regular expressions work well for this.
Something like:
Dim RegEx As New
System.Text.RegularExpressions.Regex("(href|url|sr c)\s*=\s*(?:(?:\""(?<url>[^\""]*)\"")|(?<url>[^\s*]
))", System.Text.RegularExpressions.RegexOptions.Ignore Case Or
System.Text.RegularExpressions.RegexOptions.Compil ed)
Dim Matches As System.Text.RegularExpressions.MatchCollection =
RegEx.Matches(html)
Regards,
--
S. Justin Gengo
Web Developer / Programmer
Free code library:
http://www.aboutfortunate.com
"Out of chaos comes order."
Nietzsche
"Mike Kansky" <po********@zazasoftware.com> wrote in message
news:e%****************@TK2MSFTNGP12.phx.gbl...
Is there a built in function in .NET to find URL in a string so i can
format it as <a href="url" ?
useful for Forum Posts and other human entered text.