How to parse Link, HashCode and ScreenName in Twitter Feeds using C#
<p>I am using the following code to parse the string in javascript. And this is working fine.
Now I wants the same thing in C#. I want to parse string using C#. How can I do it.</p>

<pre><code>(FeedText).parseURL().parseUsername().parseHashtag()

String.prototype.parseURL = function () {
    return this.replace(/[A-Za-z]+:\/\/[A-Za-z0-9-_]+\.[A-Za-z0-9-_:%&amp;\?\/.=]+/g, function (url) {
        return url.link(url);
    });
};

String.prototype.parseUsername = function () {
    return this.replace(/[@]+[A-Za-z0-9-_]+/g, function (u) {
        var username = u.replace("@", "")
        return u.link("http://twitter.com/" + username);
    });
};

String.prototype.parseHashtag = function () {
    return this.replace(/[#]+[A-Za-z0-9-_]+/g, function (t) {
        var tag = t.replace("#", "%23")
        return t.link("http://search.twitter.com/search?q=" + tag);
    });
};
</code></pre>
