title: Get the offset of a string
body: <p>I have an <code>Array</code> of <code>Strings</code> that was split from a buffer string. Now each item in the array has a <code>{value, offset, count, &amp; hash}</code>. How can I get the offset of the item in the array?</p>
  
  <p>Example:</p>
  
  <pre><code>String buffer = aVeryLongString;
  String[] splitStringArray = buffer.split(regex);
  
  for(String s: splitStringArray) {   
      // Get the offset of each item
      // Do something
  }
  </code></pre>