how to make a script for this case?

lummert _nospam_lummert at netcologne.de
Thu Aug 15 14:45:48 EDT 2002


D99,

read the file line by line with a loop
using regular expressions like "^a:(.*)", "^b:(.*)",
"^password:(.*)", "^e:(.*)".
u should be sure about the rules, your input file was
written with (e.g one newline -> new field, two
newlines -> new dataset).
save strings found with re's to an appropriate
sequence and write to output file with an
other loop using that sequence
cheers,

      robert




More information about the Python-list mailing list