
tim at tdw
Sep 15, 2007, 2:27 AM
Post #2 of 4
(331 views)
Permalink
|
|
Re: trim start and trailing space chars from string
[In reply to]
|
|
On 15/09/2007, Konstantinos Pachopoulos <kostaspaxos [at] yahoo> 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"? >>> ' asdf '.strip() 'asdf' >>> ' asdf '.rstrip() ' asdf' >>> ' asdf '.lstrip() 'asdf ' >>> -- http://mail.python.org/mailman/listinfo/python-list
|