boolean () { if (currentPosition < 0) { return false; } final int searchResult = myMatcher.search(currentPosition, myStringBytes.length, Option.CAPTURE_GROUP); if (searchResult > -1) { setCurrentPosition(myMatcher.getEagerRegion().getEnd(0)); } else { setCurrentPosition(searchResult); } return currentPosition > -1; }