Prototype URI Parser class

I have recently had the need to parse URL’s from within a javascript class I’m developing. Along my travels I found a nice regular expression at Poly9.com that would do what I was after, but due to certain philosophical differences in naming conventions and style I’ve decided to rewrite it as a Prototype class.

The class is very simple, basically a regular expression and some variables.

The code is released under an MIT license (as per original Poly9 code), so feel free to use it as you see fit.


About this entry