function arrayToRegexp (path, keys, options) {
  var parts = [];

  for (var i = 0; i < path.length; i++) {
    parts.push(pathToRegexp(path[i], keys, options).source);
  }

  var regexp = new RegExp('(?:' + parts.join('|') + ')', flags(options));

  return attachKeys(regexp, keys)
}
Transform an array into a regexp.

@param  {!Array}  path
@param  {Array}   keys
@param  {!Object} options
@return {!RegExp}