D
Dale Amon
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.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iD8DBQFJ3lD7ZHES7UL0zXERAq8ZAJ9cjqDvq+KGT1JOtRNzrGeD/197AgCeOfQT
HSEYoUc5+d1O/1PuQKAVhLc=
=4XSt
-----END PGP SIGNATURE-----
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.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iD8DBQFJ3lD7ZHES7UL0zXERAq8ZAJ9cjqDvq+KGT1JOtRNzrGeD/197AgCeOfQT
HSEYoUc5+d1O/1PuQKAVhLc=
=4XSt
-----END PGP SIGNATURE-----