<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Ed Rooth &#187; Random</title>
	<atom:link href="http://edrooth.com/category/random/feed/" rel="self" type="application/rss+xml" />
	<link>http://edrooth.com</link>
	<description>Personal Website + Blog + Portfolio</description>
	<lastBuildDate>Thu, 20 May 2010 13:44:27 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Mother of All Javascript URL RegExes</title>
		<link>http://edrooth.com/random/mother-of-all-url-regexes/</link>
		<comments>http://edrooth.com/random/mother-of-all-url-regexes/#comments</comments>
		<pubDate>Thu, 29 Apr 2010 04:47:14 +0000</pubDate>
		<dc:creator>Ed</dc:creator>
				<category><![CDATA[Random]]></category>

		<guid isPermaLink="false">http://edrooth.com/?p=171</guid>
		<description><![CDATA[Here is a JavaScript Regular Expression that will loosely validate any URL string.
&#160;
/^(http(s)?:\/\/)?([\w-]+\.{1})*(([\w-]*){1}(\.{1}[A-Za-z]{2,4}){1}){1}(\:{1}\d*)?([\?\/&#124;\#]+[\@\~\;\+\&#39;\#\,\.\%\-\/\&#38;\?\=\w\$\s]*)*$/i
	
&#160;
&#160;
Explanation of each portion:
	
(http(s)?:\/\/)?
	url scheme: match only &#34;http&#34; or &#34;https&#34; 0 or 1 times
&#160;

	([\w-]+\.{1})*
	subdomains: match any alphanum or hyphen containing strings ending in a dot 0 or n times
&#160;

	(([\w-]*){1}(\.{1}[A-Za-z]{2,4}){1}){1}
	top level domain: match exactly one [alphanum or hyphen containing string suffixed by a dot [...]]]></description>
			<content:encoded><![CDATA[<p>Here is a JavaScript Regular Expression that will loosely validate any URL string.</p>
<p>&nbsp;</p>
<p><code>/^(http(s)?:\/\/)?([\w-]+\.{1})*(([\w-]*){1}(\.{1}[A-Za-z]{2,4}){1}){1}(\:{1}\d*)?([\?\/|\#]+[\@\~\;\+\&#39;\#\,\.\%\-\/\&amp;\?\=\w\$\s]*)*$/i<br />
	</code></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><strong>Explanation of each portion:<br />
	</strong></p>
<p>(http(s)?:\/\/)?<br />
	url scheme: match only &quot;http&quot; or &quot;https&quot; 0 or 1 times</p>
<p>&nbsp;</p>
<p>
	([\w-]+\.{1})*<br />
	subdomains: match any alphanum or hyphen containing strings ending in a dot 0 or n times</p>
<p>&nbsp;</p>
<p>
	(([\w-]*){1}(\.{1}[A-Za-z]{2,4}){1}){1}<br />
	top level domain: match exactly one [alphanum or hyphen containing string suffixed by a dot and then a 2-4 char string]</p>
<p>&nbsp;</p>
<p>
	(:{1}\d*)?<br />
	port: match the colon and port number 0 or 1 time</p>
<p>&nbsp;</p>
<p>
	[\@\~\;\+\&#39;\#\,\.\%\-\/\&amp;\?\=\w\$\s]*<br />
	query strings, anchors, filenames: allow a variety of valid characters for these</p>
]]></content:encoded>
			<wfw:commentRss>http://edrooth.com/random/mother-of-all-url-regexes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New Website!</title>
		<link>http://edrooth.com/random/hello-world/</link>
		<comments>http://edrooth.com/random/hello-world/#comments</comments>
		<pubDate>Sat, 12 Dec 2009 03:41:10 +0000</pubDate>
		<dc:creator>Ed</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Random]]></category>
		<category><![CDATA[edrooth.com]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://localhost:8888/blog/?p=1</guid>
		<description><![CDATA[I have a new website. Whoo hoo!
&#160;
After a few weekends of laying out a design, CSS-ing, HTML-ing, and configuring Wordpress I finally have my new website up and ready to roll. Of course it&#39;s not &#34;finished&#34; because we all know that a website is never finished, but at least it&#39;s presentable. So bear with me [...]]]></description>
			<content:encoded><![CDATA[<p>I have a new website. Whoo hoo!</p>
<p>&nbsp;</p>
<p>After a few weekends of laying out a design, CSS-ing, HTML-ing, and configuring Wordpress I finally have my new website up and ready to roll. Of course it&#39;s not &quot;finished&quot; because we all know that a website is never finished, but at least it&#39;s presentable. So bear with me as I iron out the kinks, as this is very much work-in-progress.</p>
<p>&nbsp;</p>
<p>Anyway I created this site because&nbsp;<a href="http://jedutainment.com">my old site</a>&nbsp;was a bit too specific to only one of my interests. Here I&#39;ll be writing about and linking to various topics. Anything ranging from Life in Japan to Electronics to Music Production to Photography. However, may&nbsp;all non-nerds be forewarned &#8212; since I am a computer scientist, spend too much time on this Internetweb thing, and am a pro Web Developer &#8212; I will be posting much about Web Development techie related things. Wether you&#39;re into techie stuff or not, hopefully you&#39;ll find something of interest here. Please feel free to comment and send me feedback.</p>
<p>&nbsp;</p>
<p>Oh, and also&#8230; don&#39;t forget to checkout the <a href="/lifestream">nifty Lifestream area of the site</a> where you can follow all of what I&#39;m up to recently via my interactions on The Internet.</p>
]]></content:encoded>
			<wfw:commentRss>http://edrooth.com/random/hello-world/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
