Split String using multiple delimiters in one step
<p>My question is on splitting a string initially based on one criteria and then splitting the remaining part of the string with another criteria. I want to split the email address below into 3 parts in Java:</p>

<pre><code>String email = "blah.blah_blah@mail.com";
// After splitting i want 3 separate strings (can be array or accessed via an Iterable)
string1.equals("blah.blah_blah");
string2.equals("mail");
string3.equals("com");
</code></pre>

<p>I know I can first split it into two based on <code>@</code> and then later split the second string based on <code>.</code>, but is there anyway of doing this in one step? I don't mind either the <code>String#split</code> method or regex method using <code>Pattern</code> and <code>Matcher</code>.</p>