> >>> 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