title: Anonymize email address with regex in Python
body: <p>I want to hide an email address, but don't know how to have my expected answer. For example I want to see <code>hello@gmail.com</code> as <code>xxxxx@xxxxx.xxx</code>
  and <code>barakobama@me.co</code> as <code>xxxxxxxxxx@xx.xx</code></p>
  
  <p>This is the code so far:</p>
  
  <pre><code>content = re.sub(r'.+(?=@.+?)', "xxxxx", email)
  print(content)
  </code></pre>
  
  <p>However output is:
  <code>xxxxx@gmail.com</code></p>
  
  <p>But I expect:</p>
  
  <p><code>xxxxx@xxxxx.xxx</code></p>
  
  <p>I am not forced to use regex! Any help would be appreciated </p>