trim start and trailing space chars from string

John Machin sjmachin at lexicon.net
Sat Sep 15 06:33:52 EDT 2007


On Sep 15, 7:24 pm, Konstantinos Pachopoulos <kostaspa... at yahoo.gr>
wrote:
> Hi,
> is there something corresponding to the java String.trim() method, ie
> trim start and trailing space/tab chars from string?
> say convert " asdf   "  to "asdf"?

http://docs.python.org/lib/string-methods.html





More information about the Python-list mailing list