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 is well written, and you've already reached the limits of the power of regexps, and it's difficult to read. Have a look at pyparsing for a simple solution to your problem. http://pyparsing.wikispaces.com/ -- Paul Hankin -- http://mail.python.org/mailman/listinfo/python-list