title: Java get email address from url
body: <p>I have this url <code>mailto:email@gmail.com?subject=...</code> and I want to extract the email address.</p>
  
  <p>I've done this:</p>
  
  <pre><code>String[] s = url.split("[:?]");
  </code></pre>
  
  <p>It works but I'm not happy with this solution.</p>
  
  <p>Is there a way to do this using a regular expression or something better than what I have done?</p>