code: 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;
    }
  }
docs: If re matches at current position in the subject, advance position in subject and return the match; otherwise return null.