<?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: Parsing Twitter Usernames, Hashtags and URLs with ColdFusion</title>
	<atom:link href="http://www.simonwhatley.co.uk/parsing-twitter-usernames-hashtags-and-urls-with-coldfusion/feed" rel="self" type="application/rss+xml" />
	<link>http://www.simonwhatley.co.uk/parsing-twitter-usernames-hashtags-and-urls-with-coldfusion</link>
	<description>The opposite of every great idea is another great idea</description>
	<lastBuildDate>Tue, 24 Jan 2012 10:54:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Jon Ewing</title>
		<link>http://www.simonwhatley.co.uk/parsing-twitter-usernames-hashtags-and-urls-with-coldfusion/comment-page-1#comment-605</link>
		<dc:creator>Jon Ewing</dc:creator>
		<pubDate>Tue, 07 Dec 2010 18:06:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.simonwhatley.co.uk/?p=1907#comment-605</guid>
		<description>Really useful bit of a script - saved me a load of time, thanks</description>
		<content:encoded><![CDATA[<p>Really useful bit of a script &#8211; saved me a load of time, thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon Ewing</title>
		<link>http://www.simonwhatley.co.uk/parsing-twitter-usernames-hashtags-and-urls-with-coldfusion/comment-page-1#comment-588</link>
		<dc:creator>Jon Ewing</dc:creator>
		<pubDate>Tue, 07 Dec 2010 13:06:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.simonwhatley.co.uk/?p=1907#comment-588</guid>
		<description>Really useful bit of a script - saved me a load of time, thanks</description>
		<content:encoded><![CDATA[<p>Really useful bit of a script &#8211; saved me a load of time, thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gary Stanton</title>
		<link>http://www.simonwhatley.co.uk/parsing-twitter-usernames-hashtags-and-urls-with-coldfusion/comment-page-1#comment-582</link>
		<dc:creator>Gary Stanton</dc:creator>
		<pubDate>Sat, 20 Nov 2010 03:07:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.simonwhatley.co.uk/?p=1907#comment-582</guid>
		<description>Thanks for this, worked a treat. </description>
		<content:encoded><![CDATA[<p>Thanks for this, worked a treat.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jmcdanielx</title>
		<link>http://www.simonwhatley.co.uk/parsing-twitter-usernames-hashtags-and-urls-with-coldfusion/comment-page-1#comment-413</link>
		<dc:creator>jmcdanielx</dc:creator>
		<pubDate>Mon, 04 Jan 2010 07:48:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.simonwhatley.co.uk/?p=1907#comment-413</guid>
		<description>Thanks for the great posted, here is my php adaptation for preg_replace():

// replace urls with protocols first
$tweet = preg_replace(&#039;/[A-Za-z]+:\/\/[A-Za-z0-9-_]+\.[A-Za-z0-9-_:%&amp;\?\/.=]+/&#039;, &#039;&lt;a href=&quot;$0&quot; rel=&quot;nofollow&quot;&gt;$0&lt;/a&gt;&#039;, $tweet);

// replace urls without protocols next
$tweet = preg_replace(&#039;/[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_:%&amp;\?\/.=]+/&#039;, &#039;&lt;a href=&quot;http://$0&quot; rel=&quot;nofollow&quot;&gt;$0&lt;/a&gt;&#039;, $tweet);

// apply links to username
$tweet = preg_replace(&#039;/[@]+([A-Za-z0-9-_]+)/&#039;, &#039;&lt;a href=&quot;http://twitter.com/$1&quot; rel=&quot;nofollow&quot;&gt;$0&lt;/a&gt;&#039;, $tweet);

// finally replace search strings
 $tweet = preg_replace(&#039;/[#]+([A-Za-z0-9-_]+)/&#039;, &#039;&lt;a href=&quot;http://search.twitter.com/search?q=%23$1&quot; rel=&quot;nofollow&quot;&gt;$0&lt;/a&gt;&#039;, $tweet);</description>
		<content:encoded><![CDATA[<p>Thanks for the great posted, here is my php adaptation for preg_replace():</p>
<p>// replace urls with protocols first<br />
$tweet = preg_replace(&#8216;/[A-Za-z]+:\/\/[A-Za-z0-9-_]+\.[A-Za-z0-9-_:%&amp;\?\/.=]+/&#8217;, &#8216;<a href="$0" rel="nofollow">$0</a>&#8216;, $tweet);</p>
<p>// replace urls without protocols next<br />
$tweet = preg_replace(&#8216;/[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_:%&amp;\?\/.=]+/&#8217;, &#8216;<a href="http://$0" rel="nofollow">$0</a>&#8216;, $tweet);</p>
<p>// apply links to username<br />
$tweet = preg_replace(&#8216;/[@]+([A-Za-z0-9-_]+)/&#8217;, &#8216;<a href="http://twitter.com/$1" rel="nofollow">$0</a>&#8216;, $tweet);</p>
<p>// finally replace search strings<br />
 $tweet = preg_replace(&#8216;/[#]+([A-Za-z0-9-_]+)/&#8217;, &#8216;<a href="http://search.twitter.com/search?q=%23$1" rel="nofollow">$0</a>&#8216;, $tweet);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Josh Fraser</title>
		<link>http://www.simonwhatley.co.uk/parsing-twitter-usernames-hashtags-and-urls-with-coldfusion/comment-page-1#comment-412</link>
		<dc:creator>Josh Fraser</dc:creator>
		<pubDate>Fri, 13 Nov 2009 21:06:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.simonwhatley.co.uk/?p=1907#comment-412</guid>
		<description>Thanks for sharing this.  One tweak is to check that you don&#039;t match email addresses when parsing twitter handles.  For example, email@domain.com shouldn&#039;t link on @domain.</description>
		<content:encoded><![CDATA[<p>Thanks for sharing this.  One tweak is to check that you don&#8217;t match email addresses when parsing twitter handles.  For example, <a href="mailto:email@domain.com">email@domain.com</a> shouldn&#8217;t link on @domain.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PFWD</title>
		<link>http://www.simonwhatley.co.uk/parsing-twitter-usernames-hashtags-and-urls-with-coldfusion/comment-page-1#comment-411</link>
		<dc:creator>PFWD</dc:creator>
		<pubDate>Fri, 23 Oct 2009 06:41:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.simonwhatley.co.uk/?p=1907#comment-411</guid>
		<description>Thanks,
Helped a lot</description>
		<content:encoded><![CDATA[<p>Thanks,<br />
Helped a lot</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Devin</title>
		<link>http://www.simonwhatley.co.uk/parsing-twitter-usernames-hashtags-and-urls-with-coldfusion/comment-page-1#comment-410</link>
		<dc:creator>Devin</dc:creator>
		<pubDate>Tue, 07 Jul 2009 16:08:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.simonwhatley.co.uk/?p=1907#comment-410</guid>
		<description>Thanks a ton for this post, and the JS equivalent.  You just saved me a lot of headache in figuring out  how to turn hashtags into links.  I&#039;m not good with regex, so it would have taken me along time to figure out...</description>
		<content:encoded><![CDATA[<p>Thanks a ton for this post, and the JS equivalent.  You just saved me a lot of headache in figuring out  how to turn hashtags into links.  I&#8217;m not good with regex, so it would have taken me along time to figure out&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

