title: Python regex to remove emails from string
body: <p>Need to replace emails in a string, so:</p>
  
  <pre><code>inp = 'abc user@xxx.com 123 any@www foo @ bar 78@ppp @5555 aa@111"
  </code></pre>
  
  <p>should result in:</p>
  
  <pre><code>out = 'abc 123 foo bar"
  </code></pre>
  
  <p>What regex to use? </p>
  
  <pre><code>In [148]: e = '[^\@]\@[^\@]'
  In [149]: pattern = re.compile(e)
  In [150]: pattern.sub('', s)  
  Out[150]: 'one aom 123 4two'
  In [151]: s
  Out[151]: 'one ab@com 123 4 @ two'
  </code></pre>
  
  <p>Does not work for me</p>