Expanding Urls with RegEx in .NET

Posted by: Rick Strahls WebLog, on 22 Dec 2006 | View original

One of the things I need frequently is to take text entered and expand URLs in it. Theres code in my library that handles this via an ExpandUrls class that does this:   public class ExpandUrlsParser {     public string Target = ";       /// <summary>     /// Expands links into HTML hyperlinks inside of text or HTML.     /// </summary>     /// <param name="Text">The text to expand</param>    ...

Advertisement
The leading UI suite for ASP.NET - Telerik radControls
Outstanding performance. Full ASP.NET AJAX support. Nearly codeless development.

Similar Posts

  • .NET 3.0 = WinFX !? more
  • .NET Regex bug causes application to hang!!! more
  • Pittsburgh Code Camp Confirmed Topics more
  • IHTTPModule vs IHTTPHandler more
  • Regex 101 Discussion I9 - Count the number of matches. more
  • Telerik.QuickStart.XhtmlPage is a testing tool too! more
  • WSRP and JSR168 Are Two Completely Different Things... more
  • Netgear SC101 Storage Central more
  • Regex 101 Answer S5 - Strip out any non-letter, non-digit characters more
  • Interesting bug in Saxon.NET/Mono/OSX usage more

News Categories

.NET | ADO.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Community Server | dasBlog | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD