Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!news-out2.kabelfoon.nl!newsfeed.kabelfoon.nl!xindi.nntp.kabelfoon.nl!feed.xsnews.nl!border-1.ams.xsnews.nl!xlned.com!feeder1.xlned.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.056 X-Spam-Evidence: '*H*': 0.90; '*S*': 0.01; 'mentioned,': 0.07; 'to:addr:comp.lang.python': 0.09; 'cc:addr:python-list': 0.10; 'value.': 0.15; 'blocks': 0.16; 'subject:File': 0.16; 'subject:Text': 0.16; 'file.': 0.20; 'cc:no real name:2**0': 0.24; 'header': 0.24; 'cc:2**1': 0.24; 'tried': 0.25; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'header :User-Agent:1': 0.26; 'cc:addr:gmail.com': 0.27; 'in.': 0.27; "i'm": 0.29; 'code': 0.31; 'hi,': 0.33; 'received:google.com': 0.34; 'received:209.85': 0.35; 'there': 0.35; 'really': 0.36; 'but': 0.36; 'received:209': 0.37; 'well.': 0.37; 'data': 0.37; 'subject:: ': 0.38; 'traffic': 0.61; 'distinguish': 0.84; 'received:209.85.213.184': 0.91; 'received:mail- yx0-f184.google.com': 0.91; 'results,': 0.91; 'subject:From': 0.97 Newsgroups: comp.lang.python Date: Mon, 27 Aug 2012 04:23:00 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=203.104.27.53; posting-account=vuMekgoAAADezamgmHLSt0QTIg6DFFy5 References: <481dc39d-1dee-4ebe-97d5-ccad659f8c74@googlegroups.com> User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-IP: 203.104.27.53 MIME-Version: 1.0 Subject: Re: Extract Text Table From File From: Huso To: comp.lang.python@googlegroups.com Content-Type: text/plain; charset=ISO-8859-1 Cc: Huso , python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Message-ID: Lines: 10 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1346066590 news.xs4all.nl 6985 [2001:888:2000:d::a6]:58824 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:27976 Hi, There can be any number of blocks in the log file. I distinguish the block by the start header 'ROUTES TRAFFIC RESULTS, LSR' and ending in 'END'. Each block will have a unique [date + time] value. I tried the code you mentioned, it works for the data part. But I need to get the TRG, MP, DATE and TIME for the block with those data as well. This is the part that i'm really tangled in. Thanking, Huso