@Internal
public static IntVector regexpr(String pattern, StringVector vector, boolean ignoreCase, boolean perl,
boolean fixed, boolean useBytes) {
RE re = REFactory.compile(pattern, ignoreCase, perl, fixed, useBytes);
IntArrayVector.Builder position = IntArrayVector.Builder.withInitialCapacity(vector.length());
IntArrayVector.Builder matchLength = IntArrayVector.Builder.withInitialCapacity(vector.length());
for(String text : vector) {
if(re.match(text)) {
int start = re.getGroupStart(0);
int end = re.getGroupEnd(0);
position.add(start+1);
matchLength.add(end-start);
} else {
position.add(-1);
matchLength.add(-1);