dist/js/router/index.js
function stringToRegexp (path, keys, options) {
	  var tokens = parse(path)
	  var re = tokensToRegExp(tokens, options)
	
	  // Attach keys back to the regexp.
	  for (var i = 0; i < tokens.length; i++) {
	    if (typeof tokens[i] !== 'string') {
	      keys.push(tokens[i])
	    }
	  }
	
	  return attachKeys(re, keys)
	}
function stringToRegexp (path, keys, options) {
	  var tokens = parse(path)
	  var re = tokensToRegExp(tokens, options)
	
	  // Attach keys back to the regexp.
	  for (var i = 0; i < tokens.length; i++) {
	    if (typeof tokens[i] !== 'string') {
	      keys.push(tokens[i])
	    }
	  }
	
	  return attachKeys(re, keys)
	}
function stringToRegexp ( path , keys , options ) { var tokens = parse ( path ) var re = tokensToRegExp ( tokens , options ) // Attach keys back to the regexp. for ( var i = 0 ; i < tokens . length ; i ++ ) { if ( typeof tokens [ i ] !== 'string' ) { keys . push ( tokens [ i ] ) } } return attachKeys ( re , keys ) }
Create a path regexp from string input.

@param  {string}  path
@param  {!Array}  keys
@param  {!Object} options
@return {!RegExp}
Create a path regexp from string input .