newbie regexp question

mindlace mindlace at
Wed Apr 26 16:49:12 EDT 2000

Flying Circus,

I've got a re.compile('\W') that I can use to search for non-alphanumeric characters in a
variable.  However, if the variable has ( in it, for example, the search breaks. is there a
quoted_var = string.quote(somevar) or similar? Do I want to use string.maketrans(somevar,
quoted_var) ?
ethan mindlace fremen        mindlace at
zope    -&-     imap email   -&-   mailing list
weave your web with the web at

More information about the Python-list mailing list