How do I parse this ? regexp ? [slighly OT]

Simon Dahlbacka simon.dahlbacka at gmail.com
Thu Apr 28 08:41:15 EDT 2005


> >>> safetyChecker = re.compile(r"^[-\[\]0-9,. ]*$")

..doesn't the dot (.) in your character class mean that you are allowing
EVERYTHING (except newline?)

(you would probably want \. instead)

/Simon





More information about the Python-list mailing list