Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #57771

Re: Parsing multiple lines from text file using regex

From Roy Smith <roy@panix.com>
Newsgroups comp.lang.python
Subject Re: Parsing multiple lines from text file using regex
Date 2013-10-27 18:43 -0400
Organization PANIX Public Access Internet and UNIX, NYC
Message-ID <roy-A61323.18431627102013@news.panix.com> (permalink)
References <mailman.1665.1382911575.18130.python-list@python.org> <op.w5mwa3iaa8ncjz@gnudebeest>

Show all headers | View raw


In article <op.w5mwa3iaa8ncjz@gnudebeest>,
 "Rhodri James" <rhodri@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?

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Parsing multiple lines from text file using regex "Marc" <marc@marcd.org> - 2013-10-27 17:09 -0400
  Re: Parsing multiple lines from text file using regex "Rhodri James" <rhodri@wildebst.demon.co.uk> - 2013-10-27 22:19 +0000
    Re: Parsing multiple lines from text file using regex Roy Smith <roy@panix.com> - 2013-10-27 18:43 -0400
      Re: Parsing multiple lines from text file using regex Ben Finney <ben+python@benfinney.id.au> - 2013-10-28 10:34 +1100

csiph-web