}
// Remove Macro code so that r macro code does not clash with r the
// reverse modifier
replaceValue = replaceValue.substring(1);
} else {
throw new PermErrorException("MacroLetter not found: "+replaceValue);
}
// Find number of domains to use
cellPattern = Pattern.compile("\\d+");
cellMatcher = cellPattern.matcher(replaceValue);
while (cellMatcher.find()) {
domainNumber = cellMatcher.group();
if (Integer.parseInt(domainNumber) == 0) {
throw new PermErrorException(
"Digit transformer must be non-zero");
}
}
// find if reversed
cellPattern = Pattern.compile("r");