Parsing multiple lines from text file using regex

Roy Smith roy at panix.com
Sun Oct 27 18:43:16 EDT 2013


In article <op.w5mwa3iaa8ncjz at gnudebeest>,
 "Rhodri James" <rhodri at wildebst.demon.co.uk> wrote:

> I really, really wouldn't do this with a single regexp.  You'll get a much  
> easier to understand program if you implement a small state machine  
> instead.

And what is a regex if not a small state machine?



More information about the Python-list mailing list