[Tutor] How to get user input as regex

Dick Moores rdm at rcblue.com
Sat Apr 2 17:38:17 CEST 2005


Pierre Barbier de Reuille wrote at 07:22 4/2/2005:
>You should do something much simpler ^_^ :
>
>import re
>s = raw_input("regex : ")
>digs = re.compile(s)
>[...]

Aha! Thanks!

Dick







More information about the Tutor mailing list