Re: regular expression extracting groups

2008-08-10 Thread clawsicus
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

Re: regular expression extracting groups

2008-08-10 Thread Paul McGuire
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

RE: regular expression extracting groups

2008-08-10 Thread Edwin . Madari
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

Re: regular expression extracting groups

2008-08-10 Thread Paul Hankin
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

regular expression extracting groups

2008-08-10 Thread clawsicus
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