Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import re
- def Main(strArq):
- regex = re.compile('& (?! amp; | lt; | gt;)')
- with open(strArq, 'r', encoding="utf-8") as f:
- content = f.read()
- with open (strArq, 'w', encoding="utf-8") as f:
- f.write(regex.sub('& ', content))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement