import re
import string
a= """ Message-ID: <13505866.1075863688222.JavaMail.evans@thyme>
Date: Mon, 23 Oct 2000 06:13:00 -0700 (PDT)
From: phillip.allen@enron.com
To: randall.gay@enron.com
Subject:
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-From: Phillip K Allen
X-To: Randall L Gay
X-cc:
X-bcc:
X-Folder: \Phillip_Allen_Dec2000\Notes Folders\'sent mail
X-Origin: Allen-P
X-FileName: pallen.nsf
Randy,
Can you send me a schedule of the salary and level of everyone in the
scheduling group. Plus your thoughts on any changes that need to be made.
(Patti S for example)
Phillip
""" <br>
s=re.sub('[\\\]+', ' yy', a)
print(s)
error message:unicodeescape' decode can't decode bytes in position 354-355:malformed error image\N character space
I've already tried using different combinations of backslashes but its still showing the same error