<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Using Regular Expressions to Match Twitter Users and Hashtags</title>
	<atom:link href="http://granades.com/2009/04/06/using-regular-expressions-to-match-twitter-users-and-hashtags/feed/" rel="self" type="application/rss+xml" />
	<link>http://granades.com/feeder/?FeederAction=clicked&#038;feed=Comments+on+Articles+%28RSS2%29&#038;seed=http%3A%2F%2Fgranades.com%2F2009%2F04%2F06%2Fusing-regular-expressions-to-match-twitter-users-and-hashtags%2F%23comment-&#038;seed_title=Using+Regular+Expressions+to+Match+Twitter+Users+and+Hashtags</link>
	<description>Like a blog, but explodier</description>
	<lastBuildDate>Wed, 08 Feb 2012 19:17:40 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Chester</title>
		<link>http://granades.com/feeder/?FeederAction=clicked&#038;feed=Comments+on+Articles+%28RSS2%29&#038;seed=http%3A%2F%2Fgranades.com%2F2009%2F04%2F06%2Fusing-regular-expressions-to-match-twitter-users-and-hashtags%2F%23comment-390292&#038;seed_title=Using+Regular+Expressions+to+Match+Twitter+Users+and+Hashtags/comment-page-1/#comment-390292</link>
		<dc:creator>Chester</dc:creator>
		<pubDate>Fri, 04 Nov 2011 21:28:22 +0000</pubDate>
		<guid isPermaLink="false">http://granades.com/?p=2704#comment-390292</guid>
		<description>Thank you very much - these regexps will help me enhance http://myretweetedtweets.appspot.com with auto-links for references and hashes!</description>
		<content:encoded><![CDATA[<p>Thank you very much &#8211; these regexps will help me enhance <a href="http://myretweetedtweets.appspot.com" rel="nofollow">http://myretweetedtweets.appspot.com</a> with auto-links for references and hashes!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simple API Usage With Caching &#8211; Curtis Fleming (the website)</title>
		<link>http://granades.com/feeder/?FeederAction=clicked&#038;feed=Comments+on+Articles+%28RSS2%29&#038;seed=http%3A%2F%2Fgranades.com%2F2009%2F04%2F06%2Fusing-regular-expressions-to-match-twitter-users-and-hashtags%2F%23comment-384257&#038;seed_title=Using+Regular+Expressions+to+Match+Twitter+Users+and+Hashtags/comment-page-1/#comment-384257</link>
		<dc:creator>Simple API Usage With Caching &#8211; Curtis Fleming (the website)</dc:creator>
		<pubDate>Mon, 17 Oct 2011 07:23:43 +0000</pubDate>
		<guid isPermaLink="false">http://granades.com/?p=2704#comment-384257</guid>
		<description>[...] you are displaying tweets gracefully on your website.  In the case of tweets you may want to use appropriate regular expressions as well to add links to Twitter usernames and [...]</description>
		<content:encoded><![CDATA[<p>[...] you are displaying tweets gracefully on your website.  In the case of tweets you may want to use appropriate regular expressions as well to add links to Twitter usernames and [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: wallstickers4u.com</title>
		<link>http://granades.com/feeder/?FeederAction=clicked&#038;feed=Comments+on+Articles+%28RSS2%29&#038;seed=http%3A%2F%2Fgranades.com%2F2009%2F04%2F06%2Fusing-regular-expressions-to-match-twitter-users-and-hashtags%2F%23comment-325142&#038;seed_title=Using+Regular+Expressions+to+Match+Twitter+Users+and+Hashtags/comment-page-1/#comment-325142</link>
		<dc:creator>wallstickers4u.com</dc:creator>
		<pubDate>Thu, 03 Mar 2011 23:53:05 +0000</pubDate>
		<guid isPermaLink="false">http://granades.com/?p=2704#comment-325142</guid>
		<description>any ideas on Java? 
Just stumbled upon your blog looking for a solution to my problem - replace links, usernames and hashtags from tweets: my solution is
testData.replaceAll(&quot;((?i)http:\\S*?\\s&#124;(?i)http:\\S*?$&#124;@\\S*?&#124;@\\S*?$&#124;\\#[:alnum:]*?&#124;\\#[:alnum:]*?$)&quot;, &quot;[replaced]&quot;)
Problem is the hashtag gets removed, but not the groupName.
Any ideas to solve that?</description>
		<content:encoded><![CDATA[<p>any ideas on Java?<br />
Just stumbled upon your blog looking for a solution to my problem &#8211; replace links, usernames and hashtags from tweets: my solution is<br />
testData.replaceAll(&#8220;((?i)http:\\S*?\\s|(?i)http:\\S*?$|@\\S*?|@\\S*?$|\\#[:alnum:]*?|\\#[:alnum:]*?$)&#8221;, &#8220;[replaced]&#8220;)<br />
Problem is the hashtag gets removed, but not the groupName.<br />
Any ideas to solve that?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ke Tao</title>
		<link>http://granades.com/feeder/?FeederAction=clicked&#038;feed=Comments+on+Articles+%28RSS2%29&#038;seed=http%3A%2F%2Fgranades.com%2F2009%2F04%2F06%2Fusing-regular-expressions-to-match-twitter-users-and-hashtags%2F%23comment-318691&#038;seed_title=Using+Regular+Expressions+to+Match+Twitter+Users+and+Hashtags/comment-page-1/#comment-318691</link>
		<dc:creator>Ke Tao</dc:creator>
		<pubDate>Thu, 13 Jan 2011 10:20:37 +0000</pubDate>
		<guid isPermaLink="false">http://granades.com/?p=2704#comment-318691</guid>
		<description>Cool post.

Btw: As I know, the punction of apostrophe( &#039; ) can also be a part of the hashtag.</description>
		<content:encoded><![CDATA[<p>Cool post.</p>
<p>Btw: As I know, the punction of apostrophe( &#8216; ) can also be a part of the hashtag.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nick</title>
		<link>http://granades.com/feeder/?FeederAction=clicked&#038;feed=Comments+on+Articles+%28RSS2%29&#038;seed=http%3A%2F%2Fgranades.com%2F2009%2F04%2F06%2Fusing-regular-expressions-to-match-twitter-users-and-hashtags%2F%23comment-299508&#038;seed_title=Using+Regular+Expressions+to+Match+Twitter+Users+and+Hashtags/comment-page-1/#comment-299508</link>
		<dc:creator>Nick</dc:creator>
		<pubDate>Mon, 30 Aug 2010 03:55:04 +0000</pubDate>
		<guid isPermaLink="false">http://granades.com/?p=2704#comment-299508</guid>
		<description>in AS3 for those interested.  Works great. 

		public static function parseTweetUsersAndTagsToLinks( tweet:String ):String
		{
			tweet = tweet.replace(/(^&#124;\s)@(\w+)/g, &quot;$1@&lt;a href=&#039;http://www.twitter.com/$2&#039; rel=&quot;nofollow&quot;&gt;$2&lt;/a&gt;&quot;);
			return tweet.replace(/(^&#124;\s)#(\w+)/g, &quot;$1#&lt;a href=&#039;http://search.twitter.com/search?q=%23$2&#039; rel=&quot;nofollow&quot;&gt;$2&lt;/a&gt;&quot;);		
		}</description>
		<content:encoded><![CDATA[<p>in AS3 for those interested.  Works great. </p>
<p>		public static function parseTweetUsersAndTagsToLinks( tweet:String ):String<br />
		{<br />
			tweet = tweet.replace(/(^|\s)@(\w+)/g, &#8220;$1@<a href='http://www.twitter.com/$2' rel="nofollow">$2</a>&#8220;);<br />
			return tweet.replace(/(^|\s)#(\w+)/g, &#8220;$1#<a href='http://search.twitter.com/search?q=%23$2' rel="nofollow">$2</a>&#8220;);<br />
		}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Temurid</title>
		<link>http://granades.com/feeder/?FeederAction=clicked&#038;feed=Comments+on+Articles+%28RSS2%29&#038;seed=http%3A%2F%2Fgranades.com%2F2009%2F04%2F06%2Fusing-regular-expressions-to-match-twitter-users-and-hashtags%2F%23comment-295836&#038;seed_title=Using+Regular+Expressions+to+Match+Twitter+Users+and+Hashtags/comment-page-1/#comment-295836</link>
		<dc:creator>Temurid</dc:creator>
		<pubDate>Sun, 04 Jul 2010 11:05:11 +0000</pubDate>
		<guid isPermaLink="false">http://granades.com/?p=2704#comment-295836</guid>
		<description>Helo, 
I need to make a web page where I can show tweets of say two different categories.  I found by searcg that hash tag is a way to find tweeks of different types. But I do not find any help how to use these in php i.e. to find hashtags using php. I will be thankful for any help.</description>
		<content:encoded><![CDATA[<p>Helo,<br />
I need to make a web page where I can show tweets of say two different categories.  I found by searcg that hash tag is a way to find tweeks of different types. But I do not find any help how to use these in php i.e. to find hashtags using php. I will be thankful for any help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Graphity</title>
		<link>http://granades.com/feeder/?FeederAction=clicked&#038;feed=Comments+on+Articles+%28RSS2%29&#038;seed=http%3A%2F%2Fgranades.com%2F2009%2F04%2F06%2Fusing-regular-expressions-to-match-twitter-users-and-hashtags%2F%23comment-283082&#038;seed_title=Using+Regular+Expressions+to+Match+Twitter+Users+and+Hashtags/comment-page-1/#comment-283082</link>
		<dc:creator>Graphity</dc:creator>
		<pubDate>Wed, 03 Mar 2010 13:22:30 +0000</pubDate>
		<guid isPermaLink="false">http://granades.com/?p=2704#comment-283082</guid>
		<description>@Stephen: Ah, I understand. I just saw problems using localized hashtags, like, for me, German umlauts.</description>
		<content:encoded><![CDATA[<p>@Stephen: Ah, I understand. I just saw problems using localized hashtags, like, for me, German umlauts.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stephen</title>
		<link>http://granades.com/feeder/?FeederAction=clicked&#038;feed=Comments+on+Articles+%28RSS2%29&#038;seed=http%3A%2F%2Fgranades.com%2F2009%2F04%2F06%2Fusing-regular-expressions-to-match-twitter-users-and-hashtags%2F%23comment-281261&#038;seed_title=Using+Regular+Expressions+to+Match+Twitter+Users+and+Hashtags/comment-page-1/#comment-281261</link>
		<dc:creator>Stephen</dc:creator>
		<pubDate>Tue, 09 Feb 2010 19:22:20 +0000</pubDate>
		<guid isPermaLink="false">http://granades.com/?p=2704#comment-281261</guid>
		<description>Graphity: I tend to be cautious about using match-anything regexps, so deliberately limited it to letters, numbers, or an underscore. You certainly could use the match-anything regexp you posted if you wanted to be more liberal in what you match.</description>
		<content:encoded><![CDATA[<p>Graphity: I tend to be cautious about using match-anything regexps, so deliberately limited it to letters, numbers, or an underscore. You certainly could use the match-anything regexp you posted if you wanted to be more liberal in what you match.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Graphity</title>
		<link>http://granades.com/feeder/?FeederAction=clicked&#038;feed=Comments+on+Articles+%28RSS2%29&#038;seed=http%3A%2F%2Fgranades.com%2F2009%2F04%2F06%2Fusing-regular-expressions-to-match-twitter-users-and-hashtags%2F%23comment-281080&#038;seed_title=Using+Regular+Expressions+to+Match+Twitter+Users+and+Hashtags/comment-page-1/#comment-281080</link>
		<dc:creator>Graphity</dc:creator>
		<pubDate>Thu, 04 Feb 2010 18:13:38 +0000</pubDate>
		<guid isPermaLink="false">http://granades.com/?p=2704#comment-281080</guid>
		<description>Question: Why don&#039;t you use &quot;/#([^ ]+)/&quot; for hashtags, so you also capture non-Ascii tags?</description>
		<content:encoded><![CDATA[<p>Question: Why don&#8217;t you use &#8220;/#([^ ]+)/&#8221; for hashtags, so you also capture non-Ascii tags?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lobolars</title>
		<link>http://granades.com/feeder/?FeederAction=clicked&#038;feed=Comments+on+Articles+%28RSS2%29&#038;seed=http%3A%2F%2Fgranades.com%2F2009%2F04%2F06%2Fusing-regular-expressions-to-match-twitter-users-and-hashtags%2F%23comment-279889&#038;seed_title=Using+Regular+Expressions+to+Match+Twitter+Users+and+Hashtags/comment-page-1/#comment-279889</link>
		<dc:creator>lobolars</dc:creator>
		<pubDate>Wed, 13 Jan 2010 17:47:01 +0000</pubDate>
		<guid isPermaLink="false">http://granades.com/?p=2704#comment-279889</guid>
		<description>Same method as above in ruby for those interested:

def linkify_tweet(tweet)
  tweet.gsub!(/(^&#124;\s)#(\w+)/, &#039;\1&lt;a href=&quot;http://search.twitter.com/search?q=%23\2&quot; rel=&quot;nofollow&quot;&gt;#\2&lt;/a&gt;&#039;)
  tweet.gsub!(/(^&#124;\s)@(\w+)/, &#039;\1&lt;a href=&quot;http://twitter.com/\2&quot; rel=&quot;nofollow&quot;&gt;@\2&lt;/a&gt;&#039;)
end</description>
		<content:encoded><![CDATA[<p>Same method as above in ruby for those interested:</p>
<p>def linkify_tweet(tweet)<br />
  tweet.gsub!(/(^|\s)#(\w+)/, &#8216;\1<a href="http://search.twitter.com/search?q=%23\2" rel="nofollow">#\2</a>&#8216;)<br />
  tweet.gsub!(/(^|\s)@(\w+)/, &#8216;\1<a href="http://twitter.com/\2" rel="nofollow">@\2</a>&#8216;)<br />
end</p>
]]></content:encoded>
	</item>
</channel>
</rss>

