code: function (text) {
        for (var i = 0; i < this.strategies.length; i++) {
          var strategy = this.strategies[i];
          var context = strategy.context(text);
          if (context || context === '') {
            var matchRegexp = $.isFunction(strategy.match) ? strategy.match(text) : strategy.match;
            if (isString(context)) { text = context; }
            var match = text.match(matchRegexp);
            if (match) { return [strategy, match[strategy.index], match]; }
          }
        }
        return []
      }
docs: Parse the given text and extract the first matching strategy.  Returns an array including the strategy, the query term and the match object if the text matches an strategy; otherwise returns an empty array.