Robert, Craig, thanks for your replies. I'll only be dealing with alphanumerics for this project, I think, but it's good to be aware of this possible problem for later projects. The re.escape(...) is a handy method to know about. Thanks very much.
-- http://mail.python.org/mailman/listinfo/python-list