Thanks all for your responses, especially Paul McGuire for the
excellent example usage of pyparsing.
I'm off to check out pyparsing.
Thanks,
Chris
--
http://mail.python.org/mailman/listinfo/python-list
On Aug 10, 7:56 am, Paul Hankin <[EMAIL PROTECTED]> wrote:
> On Aug 10, 2:30 pm, [EMAIL PROTECTED] wrote:
>
> > I'm trying to use regular expressions to help me quickly extract the
> > contents of messages that my application will receive.
>
> Don't use regexps for parsing complex data; they're lim
r that key, its a matter of iterating over keys..
hope that simplifies and helps..
thx Edwin
-----Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
On Behalf Of [EMAIL PROTECTED]
Sent: Sunday, August 10, 2008 8:30 AM
To: python-list@python.org
Subject: regular expressi
On Aug 10, 2:30 pm, [EMAIL PROTECTED] wrote:
> I'm trying to use regular expressions to help me quickly extract the
> contents of messages that my application will receive.
Don't use regexps for parsing complex data; they're limited,
completely unreadable, and hugely difficult to debug. Your code
Hi list,
I'm trying to use regular expressions to help me quickly extract the
contents of messages that my application will receive. I have worked
out most of the regex but the last section of the message has me
stumped. This is mostly because I want to pull the content out into
regex groups that