On 28 Jul 2006 05:45:05 -0700, abcd <[EMAIL PROTECTED]> wrote: > I have a regex: '[A-Za-z]:\\([^/:\*\?"<>\|])*' > > when I do, re.compile('[A-Za-z]:\\([^/:\*\?"<>\|])*') ...I get > > sre_constants.error: unbalanced parenthesis > > do i need to escape something else? i see that i have matching > parenthesis. > > thx > > --
Try making the argument a raw string: re.compile(r'[A-Za-z]:\\([^/:\*\?"<>\|])*') -- http://mail.python.org/mailman/listinfo/python-list