asp.net - How to parse Link, HashCode and ScreenName in Twitter Feeds using C# -


i using following code parse string in javascript. , working fine. wants same thing in c#. want parse string using c#. how can it.

(feedtext).parseurl().parseusername().parsehashtag()  string.prototype.parseurl = function () {     return this.replace(/[a-za-z]+:\/\/[a-za-z0-9-_]+\.[a-za-z0-9-_:%&\?\/.=]+/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);     }); }; 

you should try , first. here's starting point: http://dev.twitter.com/pages/open_source#csharp


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -