public long end() {
return offset + length;
}
public boolean before(RegExMatch r) {
return end() <= r.getOffset();
<BUG>}
@Override</BUG>
public String toString() {
return "(" + offset + ", " + length + ")";
}

public long end() {
return offset + length;
}
public boolean before(RegExMatch r) {
return end() <= r.getOffset();
}
public boolean contains(RegExMatch r) {
return r.begin() >= begin() && r.end() <= end();
}
@Override
public String toString() {
return "(" + offset + ", " + length + ")";
}
