title: Split a string, at every nth position
body: <p>I use this regex to split a string at every say 3rd position:</p>
  
  <pre><code>String []thisCombo2 = thisCombo.split("(?&lt;=\\G...)");
  </code></pre>
  
  <p>where the 3 dots after the G indicates every nth position to split. In this case, the 3 dots indicate every 3 positions. An example:</p>
  
  <pre><code>Input: String st = "123124125134135145234235245"
  Output: 123 124 125 134 135 145 234 235 245.
  </code></pre>
  
  <p>My question is, how do i let the user control the number of positions where the string must be split at? In other words, how do I make those 3 dots, n dots controlled by the user?</p>