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


Groups > comp.lang.python > #40227

text formatting question

Newsgroups comp.lang.python
Date 2013-02-28 22:49 -0800
Message-ID <0a6178f9-51ef-4edc-b87f-2631d667797f@googlegroups.com> (permalink)
Subject text formatting question
From idy <idhayham@gmail.com>

Show all headers | View raw


I have a text string of this format 

Error = 'XYC.12345455LOcation/user/data/MYGLE-INGXYC.23344566LOcation/user/data/INGE-FTYXYC.22334566LOcation/user/data/GETN-YUNXYC.12345455LOcation/user/data/MYGLE-INGXYC.1111111LOcation/user/data/INGE-FTYXYC.3333333LOcation/user/data/GETN-YUN'

I need to write this to mail body as with following format in multiple lines

XYC.12345455-LOcation/user/data/MYGLE-ING
XYC.23344566-LOcation/user/data/INGE-FTY
XYC.22334566LOcation/user/data/GETN-YUN
XYC.12345455LOcation/user/data/MYGLE-ING
XYC.1111111LOcation/user/data/INGE-FTY
XYC.3333333LOcation/user/data/GETN-YUN

Note (XYC is common for all the text , rest of the fields are not constant. Please help

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

text formatting question idy <idhayham@gmail.com> - 2013-02-28 22:49 -0800
  Re: text formatting question Chris Angelico <rosuav@gmail.com> - 2013-03-01 17:53 +1100
    Re: text formatting question idy <idhayham@gmail.com> - 2013-02-28 23:08 -0800
      Re: text formatting question Dave Angel <davea@davea.name> - 2013-03-01 08:52 -0500
      Re: text formatting question Chris Angelico <rosuav@gmail.com> - 2013-03-02 00:57 +1100
    Re: text formatting question idy <idhayham@gmail.com> - 2013-02-28 23:08 -0800

csiph-web