URL Character Decoding

Kirk McDonald mooquack at suad.org
Mon Jan 30 04:44:41 CET 2006


Kirk McDonald wrote:
> Actually, I just noticed this doesn't really work at all. The URL 
> character codes are in hex, so not only does the regex not match what it 
> should, but sub_func fails miserably. See why I wanted a library function?
> 
> -Kirk McDonald

Not to keep talking to myself, but looks like sub_func works fine, and 
the regex just needs to be r'%[0-9a-fA-F][0-9a-fA-F]'. But even so.

-Kirk McDonald



More information about the Python-list mailing list