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