title: splitting string and keep characters (regex pattern)
body: <p>I would like to split a String and despair on the regex pattern. </p>
  
  <p>I need to split a string like this: <code>Hi I want "to split" this (String)</code> to a String array like this:</p>
  
  <pre><code>String [] array = {"Hi", "I", "want", """, "to", "split", """, "this", "(", "string", ")"};
  </code></pre>
  
  <p>This is what I have tried, but it deletes the delimiter.</p>
  
  <pre><code>public static void main(String[] args) {
  
      String string = "Hi \"why should\" (this work)";
  
      String[] array;
      array = string.split("\\s"
              + "|\\s(?=\")"
              + "|\\w(?=\")"
              + "|\"(?=\\w)"
              + "|\\s(?=\\()"
              + "|\\w(?=\\))"
              + "|\\((?=\\w)");
  
      for (String str : array) {
          System.out.println(str);
      }
  }
  </code></pre>
  
  <p>Result:</p>
  
  <pre><code>Hi
  
  why
  shoul
  "
  
  this
  wor
  )
  </code></pre>