code: function handleArgs (_regex, _config) {
  	/* Identify regex pattern. */
  	let pattern;
  	if (_regex) {
  		if (typeof _regex === 'string') {
  			pattern = _regex;
  		} else {
  			try {
  				pattern = _regex.source;
  			} catch (e) {
  				log(`Invalid regex:`);
  				log(_regex);
  			}
  		}
  	} else {
  		log(`Invalid regex: none provided`);
  	}
  	if (!pattern) {
  		let errObj = { msg: 'Invalid args' };
  		throw errObj;
  	}
  
  	/* Identify config. Accept a variety of flavors and fall back to defaults as needed. */
  	let config = {};
  	if (!_config) {
  		config.server = defaultServerConfig;
  		config.cache = defaultCacheConfig;
  	} else {
  		config.server = handleServerConfig(_config.server);
  		config.cache = handleCacheConfig(_config.cache);
  	}
  
  	return [pattern, config];
  }
docs: ********
  Helpers.
  ******** 
  @param regex: Input to checkRegex, etc.
  @param config: Input to checkRegex, etc.
  
  @returns: [pattern, config] or throws exception