problem with regex

abcd codecraig at gmail.com
Fri Jul 28 08:45:05 EDT 2006


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




More information about the Python-list mailing list