In article <mailman.41.1313479583.27778.python-l...@python.org>, Chris Rebert <c...@rebertia.com> wrote:
> pat = re.compile("^ *(\\([^)]+\\))", re.MULTILINE) First rule of regexes in Python is to always use raw strings, to eliminate the doubled backslashes: > pat = re.compile(r"^ *(\([^)]+\))", re.MULTILINE) Is easier to read. -- http://mail.python.org/mailman/listinfo/python-list