Posts Tagged ‘twitter’

May 6, 2009 4

How to Parse Twitter Usernames, Hashtags and URLs in C# 3.0

By J in Uncategorized

Lately I’ve been working on my pet project called Twime. So as part of that project, I wanted to add the ability to parse URLs, usernames and hashtags from the user’s Twitter timeline. Here’s how I went about doing that:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Text.RegularExpressions;

public static class HTMLParser
{
public static string Link(this [...]

Tags: , ,