In article <[email protected]>, Chris Rebert <[email protected]> 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
