Find word

Pedro Silva psilva at ruido-visual.pt
Fri Feb 11 07:12:47 EST 2000


Hi,

I want to find some words in a file, how can I do this in python?

What I want is:

    I have a file, that is a text file that is in teh filesystem. I need to get some lines in that file, and for that I need to find some words. For example, in that file     I know that I have the words: From, Subject, Date and Xref and I need the text that is after this words. 
    How can I find these words?

This is to show the content of a file, but like I want:
        From: Pedro    
        Subject: Find Words
        Date: 11/02/2000
        Content: xxxxxxxxxxx
Something like this!!!

Can anyone help me?

Please send your answers to: psilva at ruido-visual.pt

Thanks,

Pedro
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20000211/0052177b/attachment.html>


More information about the Python-list mailing list