<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Quick and Dirty URL Validation</title>
	<atom:link href="http://trevorturk.wordpress.com/2009/02/09/quick-and-dirty-url-validation/feed/" rel="self" type="application/rss+xml" />
	<link>http://trevorturk.wordpress.com/2009/02/09/quick-and-dirty-url-validation/</link>
	<description>A chess-playing machine of the late 18th century, promoted as an automaton but later proved a hoax.</description>
	<lastBuildDate>Mon, 30 Jan 2012 07:56:56 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Bob Aman</title>
		<link>http://trevorturk.wordpress.com/2009/02/09/quick-and-dirty-url-validation/#comment-818</link>
		<dc:creator><![CDATA[Bob Aman]]></dc:creator>
		<pubDate>Wed, 11 Feb 2009 21:06:49 +0000</pubDate>
		<guid isPermaLink="false">http://almosteffortless.com/?p=1155#comment-818</guid>
		<description><![CDATA[If I wanted to break this, I think I&#039;d write a custom &quot;webserver&quot; that responded to a HEAD request with an unending stream of headers.  Server never closes the connection, just keeps sending you headers until the client finally gives up, assuming it ever does. ]]></description>
		<content:encoded><![CDATA[<p>If I wanted to break this, I think I&#039;d write a custom &quot;webserver&quot; that responded to a HEAD request with an unending stream of headers.  Server never closes the connection, just keeps sending you headers until the client finally gives up, assuming it ever does.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Trevor</title>
		<link>http://trevorturk.wordpress.com/2009/02/09/quick-and-dirty-url-validation/#comment-817</link>
		<dc:creator><![CDATA[Trevor]]></dc:creator>
		<pubDate>Wed, 11 Feb 2009 17:22:31 +0000</pubDate>
		<guid isPermaLink="false">http://almosteffortless.com/?p=1155#comment-817</guid>
		<description><![CDATA[Hmm... yes... I think I got it now? I pasted it from running code, so I hope so :) ]]></description>
		<content:encoded><![CDATA[<p>Hmm&#8230; yes&#8230; I think I got it now? I pasted it from running code, so I hope so <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: name</title>
		<link>http://trevorturk.wordpress.com/2009/02/09/quick-and-dirty-url-validation/#comment-816</link>
		<dc:creator><![CDATA[name]]></dc:creator>
		<pubDate>Wed, 11 Feb 2009 16:49:39 +0000</pubDate>
		<guid isPermaLink="false">http://almosteffortless.com/?p=1155#comment-816</guid>
		<description><![CDATA[There is still one slash left unescaped. ]]></description>
		<content:encoded><![CDATA[<p>There is still one slash left unescaped.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Trevor</title>
		<link>http://trevorturk.wordpress.com/2009/02/09/quick-and-dirty-url-validation/#comment-815</link>
		<dc:creator><![CDATA[Trevor]]></dc:creator>
		<pubDate>Wed, 11 Feb 2009 15:58:54 +0000</pubDate>
		<guid isPermaLink="false">http://almosteffortless.com/?p=1155#comment-815</guid>
		<description><![CDATA[This is my favorite URL format validator right now:
 

  &lt;a href=&quot;http://github.com/henrik/validates_url_format_of/tree/master&quot; rel=&quot;nofollow&quot;&gt;http://github.com/henrik/validates_url_format_of/...&lt;/a&gt;  

 
URI.regexp didn&#039;t catch a lot of invalid stuff I tried to trow at it. ]]></description>
		<content:encoded><![CDATA[<p>This is my favorite URL format validator right now:</p>
<p>  <a href="http://github.com/henrik/validates_url_format_of/tree/master" rel="nofollow">http://github.com/henrik/validates_url_format_of/&#8230;</a>  </p>
<p>URI.regexp didn&#039;t catch a lot of invalid stuff I tried to trow at it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Trevor</title>
		<link>http://trevorturk.wordpress.com/2009/02/09/quick-and-dirty-url-validation/#comment-814</link>
		<dc:creator><![CDATA[Trevor]]></dc:creator>
		<pubDate>Wed, 11 Feb 2009 10:52:05 +0000</pubDate>
		<guid isPermaLink="false">http://almosteffortless.com/?p=1155#comment-814</guid>
		<description><![CDATA[Ah yes. Fixed, thanks! ]]></description>
		<content:encoded><![CDATA[<p>Ah yes. Fixed, thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: name</title>
		<link>http://trevorturk.wordpress.com/2009/02/09/quick-and-dirty-url-validation/#comment-813</link>
		<dc:creator><![CDATA[name]]></dc:creator>
		<pubDate>Wed, 11 Feb 2009 02:11:58 +0000</pubDate>
		<guid isPermaLink="false">http://almosteffortless.com/?p=1155#comment-813</guid>
		<description><![CDATA[Btw, regexp is wrong. You should escape slashes: 
regexp = url.match(/https?://([^/]+)(.*)/) ]]></description>
		<content:encoded><![CDATA[<p>Btw, regexp is wrong. You should escape slashes:<br />
regexp = url.match(/https?://([^/]+)(.*)/)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Trevor</title>
		<link>http://trevorturk.wordpress.com/2009/02/09/quick-and-dirty-url-validation/#comment-812</link>
		<dc:creator><![CDATA[Trevor]]></dc:creator>
		<pubDate>Tue, 10 Feb 2009 21:13:47 +0000</pubDate>
		<guid isPermaLink="false">http://almosteffortless.com/?p=1155#comment-812</guid>
		<description><![CDATA[Thanks, Walter. That looks like a good plugin to consider if you&#039;re worried about overkill but need more than quick and dirty. ]]></description>
		<content:encoded><![CDATA[<p>Thanks, Walter. That looks like a good plugin to consider if you&#039;re worried about overkill but need more than quick and dirty.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Walter McGinnis</title>
		<link>http://trevorturk.wordpress.com/2009/02/09/quick-and-dirty-url-validation/#comment-811</link>
		<dc:creator><![CDATA[Walter McGinnis]]></dc:creator>
		<pubDate>Tue, 10 Feb 2009 16:51:58 +0000</pubDate>
		<guid isPermaLink="false">http://almosteffortless.com/?p=1155#comment-811</guid>
		<description><![CDATA[Sorry, meant to add link to the source.  It can be found here:
 

  &lt;a href=&quot;https://modzer0.cs.uaf.edu/repos/hank/code/http_url_validation_improved/&quot; rel=&quot;nofollow&quot;&gt;https://modzer0.cs.uaf.edu/repos/hank/code/http_u...&lt;/a&gt; ]]></description>
		<content:encoded><![CDATA[<p>Sorry, meant to add link to the source.  It can be found here:</p>
<p>  <a href="https://modzer0.cs.uaf.edu/repos/hank/code/http_url_validation_improved/" rel="nofollow">https://modzer0.cs.uaf.edu/repos/hank/code/http_u&#8230;</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Walter McGinnis</title>
		<link>http://trevorturk.wordpress.com/2009/02/09/quick-and-dirty-url-validation/#comment-810</link>
		<dc:creator><![CDATA[Walter McGinnis]]></dc:creator>
		<pubDate>Tue, 10 Feb 2009 16:51:16 +0000</pubDate>
		<guid isPermaLink="false">http://almosteffortless.com/?p=1155#comment-810</guid>
		<description><![CDATA[This is the same basic concept of the older http_url_validation_improved plugin.  It&#039;s not on github, so perhaps that is why you missed it.
 

 
We use it in Kete  &lt;a href=&quot;http://(http://kete.net.nz)&quot; rel=&quot;nofollow&quot;&gt;(http://kete.net.nz)&lt;/a&gt; to achieve what you are after.  It does look like it could use that URI.regexp refactoring added to it.
 

 
One nice thing is that it will check for allowed content types with configuration.  It also gives more finegrained feedback when validation fails. ]]></description>
		<content:encoded><![CDATA[<p>This is the same basic concept of the older http_url_validation_improved plugin.  It&#039;s not on github, so perhaps that is why you missed it.</p>
<p>We use it in Kete  <a href="http://(http://kete.net.nz)" rel="nofollow">(</a><a href="http://kete.net.nz" rel="nofollow">http://kete.net.nz</a>) to achieve what you are after.  It does look like it could use that URI.regexp refactoring added to it.</p>
<p>One nice thing is that it will check for allowed content types with configuration.  It also gives more finegrained feedback when validation fails.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Trevor</title>
		<link>http://trevorturk.wordpress.com/2009/02/09/quick-and-dirty-url-validation/#comment-809</link>
		<dc:creator><![CDATA[Trevor]]></dc:creator>
		<pubDate>Tue, 10 Feb 2009 15:53:35 +0000</pubDate>
		<guid isPermaLink="false">http://almosteffortless.com/?p=1155#comment-809</guid>
		<description><![CDATA[As an aside, found this easy way to do basic URL format validation:
 

  &lt;a href=&quot;http://www.ruby-doc.org/core/classes/URI.html#M004840&quot; rel=&quot;nofollow&quot;&gt;http://www.ruby-doc.org/core/classes/URI.html#M00...&lt;/a&gt;  

 
require &#039;uri&#039;
 
validates_format_of :uri, :with =&gt; URI.regexp
 

 
Very nice - no need for a custom regexp :) ]]></description>
		<content:encoded><![CDATA[<p>As an aside, found this easy way to do basic URL format validation:</p>
<p>  <a href="http://www.ruby-doc.org/core/classes/URI.html#M004840" rel="nofollow">http://www.ruby-doc.org/core/classes/URI.html#M00&#8230;</a>  </p>
<p>require &#039;uri&#039;</p>
<p>validates_format_of :uri, :with =&gt; URI.regexp</p>
<p>Very nice &#8211; no need for a custom regexp <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>

