title: python regex get first part of an email address
body: <p>I am quite new to python and regex and I was wondering how to extract the first part of an email address upto the domain name. So for example if:</p>
  
  <pre><code>s='xjhgjg876896@domain.com'
  </code></pre>
  
  <p>I would like the regex result to be (taking into account all "sorts" of email ids i.e including numbers etc..):</p>
  
  <pre><code>xjhgjg876896
  </code></pre>
  
  <p>I get the idea of regex - as in I know I need to scan till "@" and then store the result - but I am unsure how to implement this in python.</p>
  
  <p>Thanks for your time.</p>