newbie regexp question
mindlace at imeme.net
Thu Apr 27 00:09:38 CEST 2000
Fredrik Lundh wrote:
> mindlace <mindlace at imeme.net> wrote:
> > 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
> > the search breaks.
Er, yes, like if there's a ( it gives me an error.
> have no idea what you're talking about here, but maybe
> re.escape does what you wants?
Yes, it does. Thanks very much. I should have looked at Module Contents in the documentation on
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