nl_tokens: Parse URI
pl_tokens: function parseUri ( uri ) { var parts = uri . match ( / ^(?:([\w+.-]+):\/\/([^/]+))?([^?#]*)?(\?[^#]*)?(#.*)? / ) ; return { protocol : parts [ 1 ] || '' , host : parts [ 2 ] || '' , path : parts [ 3 ] || '' , qs : parts [ 4 ] || '' , hash : <mask> [ 5 ] || '' } ; }