title: How can I split this string into an array?
body: <p>My string is as follows:</p>
  
  <pre><code>smtp:jblack@test.com;SMTP:jb@test.com;X400:C=US;A= ;P=Test;O=Exchange;S=Jack;G=Black;
  </code></pre>
  
  <p>I need back:</p>
  
  <pre><code>smtp:jblack@test.com
  SMTP:jb@test.com
  X400:C=US;A= ;P=Test;O=Exchange;S=Jack;G=Black;
  </code></pre>
  
  <p>The problem is the semi-colons seperate the addresses and also part of the X400 address. Can anyone suggest how best to split this?</p>
  
  <p>PS I should mentioned the order differs so it could be:</p>
  
  <pre><code>X400:C=US;A= ;P=Test;O=Exchange;S=Jack;G=Black;;smtp:jblack@test.com;SMTP:jb@test.com
  </code></pre>
  
  <p>There can be more than 3 address, 4, 5.. 10 etc including an X500 address, however they do all start with either smtp: SMTP: X400 or X500.</p>