On Mar 15, 6:25 pm, Gilles Ganault <nos...@nospam.com> wrote: > address = re_address.search(response) > if address: > address = address.group(1).strip() > > #Important! > for item in ["\t","\r"," <br />"]: > address = address.replace(item,"") >
As you found, your script works just fine, it's just that during terminal output the \r performs a carriage return and wipes out everything prior to it. FWIW, I've rarely seen a \r by itself, even in Windows (where it's usually \r\n). Unix generally just outputs the \n, so my guess is that some other process which created the output removed newline characters, but didn't account for the carriage return characters first. Wiping out the \r characters as you did will solve your display issues, though any other code should read right past them. ~G -- http://mail.python.org/mailman/listinfo/python-list