title: Split String in Java with regex
body: <p>I am getting an input from the user as a String, input example are like this:</p>
  
  <pre><code>Hospital name 123-4567   (Hospital name = name, 123-4567=ZIP CODE)
  Hospital 123-4567        (Hospital = name, 123-4567=ZIP CODE)
  Hospital 33name 123-4567 (Hospital 33name = name, 123-4567=ZIP CODE)
  123-4567                 (123-4567=ZIP CODE)
  1234567                  (1234567=ZIP CODE)
  </code></pre>
  
  <p>Now I found a regex to recognize the ZIP CODE: <code>[0-9]{3}[-,ー]?[0-9]{4}</code>
  (first are 3 number, then 4 number after -,ー)
  But I want to split the string in 2 parts: name and zip code.
  If I split with this regex the string: HOSPITAL NAME 123-4567</p>
  
  <p>I get a variable with only: HOSPITAL NAME, and the ZIP CODE isn't "divided" in another variable / list.</p>
  
  <p>I have to separate the 2 parts in 2 different variable / list / array, everything is fine.</p>
  
  <p>Than is not all, in the user inputbox, every character inputted is processed, so
  I have to recognize the string on every input.</p>
  
  <p>If the user start to input: HOSPITAL NAME 3 (I can guess that this 3 is the start of the ZIP CODE or still the name of the hospital, but if the input continue with: HOSPITAL NAME 345-, I'm sure that 345- is the ZIP CODE)</p>
  
  <p>Anyone know how to DIVIDE this sting in 2 parts?</p>