Parsing text

sicvic morange.victor at gmail.com
Mon Dec 19 18:15:10 EST 2005


I was wondering if theres a way where python can read through the lines
of a text file searching for a key phrase then writing that line and
all lines following it up to a certain point, such as until it sees a
string of "---------------------"

Right now I can only have python write just the line the key phrase is
found in.

Thanks,
Victor




More information about the Python-list mailing list