rgheck wrote:
> I take it the reason is that re itself has its own way of understanding
> "\".

No, I think the reason is that regular expressions need to be escaped 
themselves. So:

        m = re.match(r'(.*)\\InsetSpace (.*)', document.body[i])
and
        m = re.match('(.*)\\\\InsetSpace (.*)', document.body[i])

without the r prefix. 

Jürgen

Reply via email to