<?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: Test for an external link</title>
	<atom:link href="http://james.padolsey.com/javascript/test-for-an-external-link/feed/" rel="self" type="application/rss+xml" />
	<link>http://james.padolsey.com/javascript/test-for-an-external-link/</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Thu, 02 Feb 2012 18:03:26 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2</generator>
	<item>
		<title>By: Carsten</title>
		<link>http://james.padolsey.com/javascript/test-for-an-external-link/comment-page-1/#comment-2179</link>
		<dc:creator>Carsten</dc:creator>
		<pubDate>Thu, 01 Jan 2009 13:43:48 +0000</pubDate>
		<guid isPermaLink="false">http://james.padolsey.com/?p=312#comment-2179</guid>
		<description>Hi James,
I love your snippets - this one is another beauty! Personally I don&#039;t like using large frameworks because of the overhaed and all the stuff you need to learn but are not really interested in ...

So, keep on bringing on the snippets! ;-)</description>
		<content:encoded><![CDATA[<p>Hi James,<br />
I love your snippets &#8211; this one is another beauty! Personally I don&#8217;t like using large frameworks because of the overhaed and all the stuff you need to learn but are not really interested in &#8230;</p>
<p>So, keep on bringing on the snippets! <img src='http://james.padolsey.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James</title>
		<link>http://james.padolsey.com/javascript/test-for-an-external-link/comment-page-1/#comment-2104</link>
		<dc:creator>James</dc:creator>
		<pubDate>Wed, 31 Dec 2008 11:39:31 +0000</pubDate>
		<guid isPermaLink="false">http://james.padolsey.com/?p=312#comment-2104</guid>
		<description>Pete, Regex may be a little more concise but it won&#039;t work if you use absolute URLs for internal links...</description>
		<content:encoded><![CDATA[<p>Pete, Regex may be a little more concise but it won&#8217;t work if you use absolute URLs for internal links&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pete</title>
		<link>http://james.padolsey.com/javascript/test-for-an-external-link/comment-page-1/#comment-2102</link>
		<dc:creator>Pete</dc:creator>
		<pubDate>Wed, 31 Dec 2008 11:12:50 +0000</pubDate>
		<guid isPermaLink="false">http://james.padolsey.com/?p=312#comment-2102</guid>
		<description>I guess it&#039;s personal preference, but I like the terseness of Regular Expressions:
&lt;pre lang=&quot;javascript&quot;&gt;
return /^http:\/\//i.test(href);
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>I guess it&#8217;s personal preference, but I like the terseness of Regular Expressions:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span class="kw1">return</span> <span class="co2">/^http:\/\//i</span>.<span class="me1">test</span><span class="br0">&#40;</span>href<span class="br0">&#41;</span><span class="sy0">;</span></pre></div></div>

]]></content:encoded>
	</item>
</channel>
</rss>

