title: Java Pattern split considering capturing groups
body: <p>I need to split a string passing a regex, but the split token is just the group 1 of the regex. An example:</p>
  
  <p>Original String = <code>"paulo\\;Is\\;In;Real;Doubt"</code></p>
  
  <p>Array formed using the split = <code>["paulo\\;Is\\;In", "Real", "Doubt"]</code></p>
  
  <p>My first idea was to use as regex: <code>[^\\\\][;]</code>  but it obviously did not work.</p>
  
  <p>The output was: <code>["paulo\\;Is\\;I", "Rea", "Doubt"]</code> (I am using the <code>String.split()</code> method.)</p>
  
  <p>My second idea was to use the <code>;</code> as a group: <code>[^\\\\]([;])</code>, but I just can't tell the split method to just consider the <code>group(1)</code> as a split token.</p>