background preloader

Shorten

Facebook Twitter

Create a cached copy of any url! ParseUri 1.2: Split URLs in JavaScript. Thursday, June 28th, 2007 • Related • Filed Under I've just updated parseUri.

parseUri 1.2: Split URLs in JavaScript

If you haven't seen the older version, parseUri is a function which splits any well-formed URI into its parts, all of which are optional. Its combination of accuracy, flexibility, and brevity is unrivaled. Highlights: URL Encoding. RFC 1738: Uniform Resource Locators (URL) specification The specification for URLs (RFC 1738, Dec. '94) poses a problem, in that it limits the use of allowed characters in URLs to only a limited subset of the US-ASCII character set: "...Only alphanumerics [0-9a-zA-Z], the special characters "$-_.+!

URL Encoding

*'()," [not including the quotes - ed], and reserved characters used for their reserved purposes may be used unencoded within a URL. "