title: Java multiple split - keep delimiters
body: <p>I know similar questions have been asked but I havent been able to find the specific thing I am looking for involving square brackets.</p>
  
  <p>The following is input:</p>
  
  <blockquote>
    <p>[NAME]   Bob<br/>
    [NUMBER] 12456703<br/>
    [STREET] Anything  [UNIT] 32 [SUBURB] Benmore </p>
  </blockquote>
  
  <p>I want to be able to input this data into a hasmap where the text in brackets will be the key and the info not in brackets will be the data.
  I have been trying to use substring and split but I got into problems when there was more than one set of brackets per line?<br/>
  Thanks alot</p>