Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #53497 > unrolled thread

How can I remove the first line of a multi-line string?

Started byAnthony Papillion <papillion@gmail.com>
First post2013-09-02 11:06 -0500
Last post2013-09-02 11:06 -0500
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python


Contents

  How can I remove the first line of a multi-line string? Anthony Papillion <papillion@gmail.com> - 2013-09-02 11:06 -0500

#53497 — How can I remove the first line of a multi-line string?

FromAnthony Papillion <papillion@gmail.com>
Date2013-09-02 11:06 -0500
SubjectHow can I remove the first line of a multi-line string?
Message-ID<mailman.497.1378137995.19984.python-list@python.org>
Hello Everyone,

I have a multi-line string and I need to remove the very first line from
it. How can I do that? I looked at StringIO but I can't seem to figure
out how to properly use it to remove the first line. Basically, I want
to toss the first line but keep everything else.  Can anyone put me on
the right path? I know it is probably easy but I'm still learning Python
and don't have all the string functions down yet.

Thanks,
Anthony

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web