On 7 Aug 2005 10:14:33 -0700, "Kay Schluehr" <[EMAIL PROTECTED]> wrote:
>Use the strip() method. > >Example: > >>>> "\t abc \n".strip() >"abc" > >Variants are lstrip() and rstrip(). > and also occasionally useful: >>> 'abc123cab'.strip('bca') '123' I.e., a strip argument as an unordered set of characters that causes stripping so long as characters at the end(s) of the string being stripped are found that are in the set. Regards, Bengt Richter -- http://mail.python.org/mailman/listinfo/python-list