Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #53497
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsreader4.netcologne.de!news.netcologne.de!xlned.com!feeder7.xlned.com!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <papillion@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.004 |
| X-Spam-Evidence | '*H*': 0.99; '*S*': 0.00; 'yet.': 0.04; 'that?': 0.05; 'string': 0.09; 'subject:string': 0.09; 'toss': 0.09; 'subject:How': 0.10; 'python': 0.11; 'stringio': 0.16; 'subject:remove': 0.16; 'thanks,': 0.17; 'looked': 0.18; 'everyone,': 0.19; 'properly': 0.19; 'header:User-Agent:1': 0.23; "i'm": 0.30; 'anyone': 0.31; 'probably': 0.32; 'figure': 0.32; 'subject:the': 0.34; "can't": 0.35; 'but': 0.35; 'received:google.com': 0.35; 'subject:?': 0.36; 'message- id:@gmail.com': 0.38; 'to:addr:python-list': 0.38; 'subject:can': 0.39; 'to:addr:python.org': 0.39; 'how': 0.40; 'remove': 0.60; 'easy': 0.60; 'first': 0.61 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=nASnZAByI0drKZroeKqu/gftk38l9Pa4D+kyPSFywE0=; b=SfjGfudwTxRwRjcMFs7HgQmtTbfMNInFlMSHkWKpfCyMFUvGzpoB2ehhipK2qT9YUG g+mjHnKeSwmONlZ1SSMoZ0SSnVlXqKZhGLEW2YpNfxy6+UvEipONCxIw1vo7KniBaFTv AqzpSUXBOVdm+sJVzMt04UJuxY7K0J0y663HV35+DtXt9PPJoH927bSIgddv4gaItTRX 6gOKf8dy5+ZSCX0CqZmhB1LgRnHvf5VR4KOnwrhqNAhZ0xiZ1xU1lz5ExoHqc6s+ocfP VpM+rcgQ2U4uNgHp74JE/YDFiN6n6+WaT0m1WIZzBp7dQdubujJW5y0PffqzG+iDe/2N NRCw== |
| X-Received | by 10.182.148.8 with SMTP id to8mr17703552obb.17.1378137992485; Mon, 02 Sep 2013 09:06:32 -0700 (PDT) |
| Date | Mon, 02 Sep 2013 11:06:30 -0500 |
| From | Anthony Papillion <papillion@gmail.com> |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130804 Thunderbird/17.0.8 |
| MIME-Version | 1.0 |
| To | python-list@python.org |
| Subject | How can I remove the first line of a multi-line string? |
| Content-Type | text/plain; charset=UTF-8 |
| Content-Transfer-Encoding | 7bit |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.497.1378137995.19984.python-list@python.org> (permalink) |
| Lines | 11 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1378137995 news.xs4all.nl 15975 [2001:888:2000:d::a6]:33799 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:53497 |
Show key headers only | View raw
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
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
How can I remove the first line of a multi-line string? Anthony Papillion <papillion@gmail.com> - 2013-09-02 11:06 -0500
csiph-web