On 2008-07-01, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> I'm looking over the docs for the re module and can't find how to
> "NOT" an entire regex.

(?! R)

> How make regex that means "contains regex#1 but NOT regex#2" ?

(\1|(?!\2))

should do what you want.

Albert
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to