You should do something much simpler ^_^ :
import re s = raw_input("regex : ") digs = re.compile(s) [...]
Aha! Thanks!
Dick
_______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor