index.js
function (lookup) {
  var matches = tmplRegExp.exec(lookup);
  if (matches) {
    return {
      src: matches && matches[0],
      prop: matches && matches[1] || matches[2],
    };
  } else {
    return false;
  }
}
function (lookup) {
  var matches = tmplRegExp.exec(lookup);
  if (matches) {
    return {
      src: matches && matches[0],
      prop: matches && matches[1] || matches[2],
    };
  } else {
    return false;
  }
}
inspect string for lookups that satisfy the above regexp