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 -- http://mail.python.org/mailman/listinfo/python-list