python_only wrote: > http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/410692 Neat solution! -- Klaus Alexander Seistrup Magnetic Ink, Copenhagen, Denmark http://magnetic-ink.dk/