Expanding Urls with RegEx in .NET

Posted by: Rick Strahls WebLog, on 22 Dec 2006 | View original | Bookmarked: 0 time(s)

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
Category: Regex | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 2054 | Hits: 221

Similar Posts

  • ASP.NET: REGEX Parse the RSS / ATOM Feed Url from a Page more
  • Lookbehind in Regex searches more
  • Getting and Setting Query String Values in JavaScript more
  • HttpHandler To Assist In Preventing Image Leeching more
  • XM Radio Player Part II : Scraping more
  • Named Formats Redux more
  • The problem with intellisense more
  • One Function to Rule All URLs more
  • Cleaning Up ASP.NET Sessions in Google more
  • Upcoming Blog Features Part 2: SEO Improvements more

News Categories

.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Data | 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