lib/stmd.js
function(re) {
  var match = re.exec(this.subject.slice(this.pos));
  if (match) {
    this.pos += match.index + match[0].length;
    return match[0];
  } else {
    return null;
  }
}
function(re) {
  var match = re.exec(this.subject.slice(this.pos));
  if (match) {
    this.pos += match.index + match[0].length;
    return match[0];
  } else {
    return null;
  }
}
function ( re ) { var match = re . exec ( this . subject . slice ( this . pos ) ) ; if ( match ) { this . pos += match . index + match [ 0 ] . length ; return match [ 0 ] ; } else { return null ; } }
If re matches at current position in the subject, advance position in subject and return the match; otherwise return null.
If re matches at current position in the subject advance position in subject and return the match ; otherwise return null .