try {
final RE reHorLine = new RE(HLINE_GROUP + "+");
for (int r = 0; r < aa.getH(); r++) {
String row = aa.getRow(r);
int startIndex = 0;
while (reHorLine.match(row, startIndex)) {
int mStart = reHorLine.getParenStart(0);
int mEnd = reHorLine.getParenEnd(0);
aacStart.setXY(mStart, r);
aacEnd.setXY(mEnd - 1, r);