title: Getting name from the email address in python
body: <p>I have a text file in which there are email addresses in the following format:</p>
  
  <pre><code>some.name@somehost.com
  </code></pre>
  
  <p>or</p>
  
  <pre><code>some_name@somehost
  </code></pre>
  
  <p>How can I split the string to get some &amp; name? I tried the following code, but it appears I can only use one character (just the <strong>@</strong> or just the <strong>.</strong>).Is there a way to do it in one statement? Thanks.</p>
  
  <pre><code>name = email.split('@', '.')
  </code></pre>