code: function _getContextsMatchingRegexPathContexts() {
    const regexContexts = []
    _each(_pathContexts, pathContext => {
      const contexts = pathContext.contexts
  
      _each(contexts, context => {
        if (_contextRegex.test(context)) {
          // context string is a regex context
          const replaceContextRegex = context.replace(_contextRegex, '.+?')
  
          _each(_context, currentContext => {
            if (new RegExp(replaceContextRegex).test(currentContext)) {
              regexContexts.push(currentContext)
            }
          })
        }
      })
    })
    return regexContexts
  }
docs: Gets all the pathContext.contexts that are regex contexts and matches
  those to genie's contexts. Returns all the matching contexts.
  @returns {Array}
  @private