[Tutor] search list with regex
Alan Gauld
alan.gauld at btinternet.com
Mon Jan 31 21:29:22 CET 2011
"Elwin Estle" <chrysalis_reborn at yahoo.com> wrote
> parse various text files and my standard method is to
> slurp the whole thing up into a string variable, then
> break it up into a list that I can then work on
If you read it with readlines() Python will do all of
that for you...
HTH,
--
Alan Gauld
Author of the Learn to Program web site
http://www.alan-g.me.uk/
--------------------------------------------------------------------------------
> _______________________________________________
> Tutor maillist - Tutor at python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/mailman/listinfo/tutor
>
More information about the Tutor
mailing list