The Lazy Man’s URL Parsing in JavaScript

The Lazy Man's URL Parsing in JavaScript | Joe Zim's JavaScript Blog.

This is really quite brilliant. All to often I find myself over-thinking problems when a perfectly acceptable answer is under my nose. This is one of those examples. Although I can’t think of a specific instance offhand, I know that I’ve attempted to break out a URL for parsing in JavaScript. Regex got involved it was a huge big mess. Why oh why didn’t I come up with this myself?!