Use RESUtils.matchRE and RegExp.exec