SHARE
TWEET

Untitled

a guest Jul 21st, 2019 71 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import re
  2.  
  3. def Main(strArq):
  4.     regex = re.compile('& (?! amp; | lt; | gt;)')
  5.  
  6.     with open(strArq, 'r', encoding="utf-8") as f:
  7.         content = f.read()
  8.  
  9.     with open (strArq, 'w', encoding="utf-8") as f:
  10.         f.write(regex.sub('& ', content))
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top