title: java string[] splitting for email id
body: <p>I have a variable <code>temp</code>:</p>
  
  <pre><code>String temp = "Ms Abc`&lt;abc@gmail.com`&gt;;Mr Cde`&lt;cde@mail.com`&gt;;Miss Xyz`&lt;xyz@mail.com`&gt;";
  </code></pre>
  
  <p>Now I have to split this variable <code>temp</code> string into an <code>ArrayList</code> or <code>String[]</code> so that I can extract <code>title</code>, <code>name</code>, <code>emailid</code> for insertion into a database. I'm only able to split the email id using following code:</p>
  
  <pre><code>ArrayList emailIdList = new ArrayList();
  Pattern p = Pattern.compile("\\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\\.[A-Z]{2,4}\\b",Pattern.CASE_INSENSITIVE);
  Matcher m = p.matcher(s);
  while (m.find()){
       emailIdList.add(m.group()); 
  }
  </code></pre>
  
  <p>But I'm having a problem getting the title and name as I am stuck with the logic.</p>
  
  <p>How this can be done?</p>