newbie regexp question

mindlace mindlace at imeme.net
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) ?
 
Thanks,
-- 
ethan mindlace fremen        mindlace at imeme.net
zope    -&-     imap email   -&-   mailing list
weave your web with the web at http://imeme.net




More information about the Python-list mailing list