Parsing a line with Python

Terry Reedy tjreedy at udel.edu
Tue Feb 13 15:29:59 EST 2001


"Chris Richard Adams" <chrisa at ASPATECH.COM.BR> wrote in message
news:mailman.982092035.18085.python-list at python.org...
Can anyone suggest a technique where I could parse through a line in a
file and select individual strings? For example, I could process this
email and put string in a list or temp storage.

Strings have match(), find(), and split() methods.  There is also the re
(relational expression) module for more complicated searches.






More information about the Python-list mailing list