Ben> I am working on a script that splits a URL into a page and a Ben> url.
I couldn't tell quite what you mean to accomplish from your example. (In particular, I don't know what you mean by "default_group", as it's never defined, and I don't know why the desired output of examples 1 and 6 is the same, since the URLs are clearly different.) You don't mention having tried the urlparse module, so I thought I should ask: have you tried using urlparse? Skip -- http://mail.python.org/mailman/listinfo/python-list