SourceForge patch 101396, by an anonymous friend.
"sre_parse.py missing '7' in DIGITS"
diff --git a/Lib/sre_parse.py b/Lib/sre_parse.py
index a50191e..4286aca 100644
--- a/Lib/sre_parse.py
+++ b/Lib/sre_parse.py
@@ -17,7 +17,7 @@
 SPECIAL_CHARS = ".\\[{()*+?^$|"
 REPEAT_CHARS  = "*+?{"
 
-DIGITS = tuple("012345689")
+DIGITS = tuple("0123456789")
 
 OCTDIGITS = tuple("01234567")
 HEXDIGITS = tuple("0123456789abcdefABCDEF")