This finds nothing:
import re
import string
card = "abcdef"
DEC029 = re.compile("[^&0-9A-Z/ $*,.\-:#@'=\"[<(+\^!);\\\]%_>?]")
errs = DEC029.findall(card.strip("\n\r"))
print errs
This works correctly:
import re
import string
card = "abcdef"
DEC029 = re.compile("[^&0-9A-Z/ $*,.\-:#@'=\"[<(+\^!)\\;\]%_>?]")
errs = DEC029.findall(card.strip("\n\r"))
print errs
They differ only in the positioning of the quoted backslash.
Just in case it is of interest to anyone.
signature.asc
Description: Digital signature
-- http://mail.python.org/mailman/listinfo/python-list
