Re: [Tutor] How to match strange characters

2008-09-08 Thread J. Van Brimmer
Thanks Paul, this looks like just what I need to reformat PRECESS's output into what I need. Thanks, Jerry Paul McGuire wrote: Instead of trying to match on the weird characters, in order to remove them, here is a pyparsing program that ignores those header lines and just extracts the interest

Re: [Tutor] How to match strange characters

2008-09-08 Thread Paul McGuire
Instead of trying to match on the weird characters, in order to remove them, here is a pyparsing program that ignores those header lines and just extracts the interesting data for each section. In a pyparsing program, you start by defining what patterns you want to look for. This is similar to th

Re: [Tutor] How to match strange characters

2008-09-08 Thread J. Van Brimmer
Kent Johnson wrote: On Mon, Sep 8, 2008 at 2:46 AM, J. Van Brimmer <[EMAIL PROTECTED]> wrote: I have a legacy program at work that outputs a text file with this header: ÉÍÍ» º Radio Source Precession Program º º by J

Re: [Tutor] How to match strange characters

2008-09-08 Thread Kent Johnson
On Mon, Sep 8, 2008 at 2:46 AM, J. Van Brimmer <[EMAIL PROTECTED]> wrote: > I have a legacy program at work that outputs a text file with this header: > > ÉÍÍ» > º Radio Source Precession Program º > º by John B. Doe º > º

[Tutor] How to match strange characters

2008-09-07 Thread J. Van Brimmer
I have a legacy program at work that outputs a text file with this header: ÉÍÍ» º Radio Source Precession Program º º by John B. Doe º º 31 August 1992 º ÈÍÍÍ