title: Difficulty splitting string at delimiter and keeping it
body: <p>I have a string that is read in pairs, separated by comma. However, I do not always want to split at the comma because there is not always 1 comma in the input. For example, the string, </p>
  
  <pre><code>(http://www.wolframalpha.com/input/?i=103%2F30+%3D+4a-3b,+71%2F60+%3D+a+%2B+b
  ,http://www.wolframalpha.com/input/?i=x%5E2%2B5x%2B6,file:///tmp/foo/bar/p,d,f.pdf)
  </code></pre>
  
  <p>Is read in all one line. For this case, I only want to split at the ,h, and no where else in the string. Essentially, after the split, the strings should be:</p>
  
  <pre><code>http://www.wolframalpha.com/input/?i=103%2F30+%3D+4a-3b,+71%2F60+%3D+a+%2B+b
  
  http://www.wolframalpha.com/input/?i=x%5E2%2B5x%2B6
  
  file:///tmp/foo/bar/p,d,f.pdf
  </code></pre>
  
  <p>Maintaining the order of the comma in the first string. (I will get rid of parenthesis). I have looked at <a href="https://stackoverflow.com/questions/2206378/how-to-split-a-string-but-also-keep-the-delimiters">this</a> stack overflow question, and while helpful, does not correctly split this string. This is in Java. Any help is appreciated.</p>