Newbie needs regex help

Dan M dan at catfolks.net
Mon Dec 6 12:58:05 EST 2010


On Mon, 06 Dec 2010 18:12:33 +0100, Peter Otten wrote:

> By the way:
>  
>>>> print quopri.decodestring("=E4=F6=FC").decode("iso-8859-1")
> äöü
>>>> print r"\xe4\xf6\xfc".decode("string-escape").decode("iso-8859-1")
> äöü

Ah - better than a regex. Thanks!



More information about the Python-list mailing list