I guess my background is showing when I'd want to run a sed script to normalize the data before parsing it. Strip parens, add field demarcation between the Title and Comment, or after the Title on lines without a comment, etc. =)
(Hunh. I wonder what happens if you give different groups in the Regex the same string title? Does the Regex constructor throw, does the parsing fail if more than one of those fields is non-None, or does some data get hidden?)
(no subject)
Date: 2012-08-24 02:17 pm (UTC)(Hunh. I wonder what happens if you give different groups in the Regex the same string title? Does the Regex constructor throw, does the parsing fail if more than one of those fields is non-None, or does some data get hidden?)