Better way to sift parts of URL . . .
skip at pobox.com
skip at pobox.com
Tue Apr 18 17:25:52 EDT 2006
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
More information about the Python-list
mailing list