On 12/23/2010 10:03 PM, kj wrote: >>>> import re # sorry >>>> sp = re.compile('(//?|[;?:@=&#.])') >>>> filter(len, sp.split(url)) Perhaps I'm being overly pedantic, but I would likely have written that as "filter(None, sp.split(url))" for the same reason that "if string:" is generally preferred to "if len(string):". Cheers, Ian