"Gabriel Genellina" <gagsl-py at yahoo.com.ar> wrote in message news:mailman.1288.1165563291.32031.python-list at python.org... ... > You have to quote metacharacters if you want to match them. The escape > method is useful for this: > > >>> re.escape('(a)') > '\\(a\\)' Doh! Of course! Thanks everyone. -- Mike --