code: function getMatches(code, regexInfo)
      {
          function defaultAdd(match, regexInfo)
          {
              return match[0];
          };
  
          var index = 0,
              match = null,
              matches = [],
              func = regexInfo.func ? regexInfo.func : defaultAdd
              ;
  
          while((match = regexInfo.regex.exec(code)) != null)
          {
              var resultMatch = func(match, regexInfo);
  
              if (typeof(resultMatch) == 'string')
                  resultMatch = [new sh.Match(resultMatch, match.index, regexInfo.css)];
  
              matches = matches.concat(resultMatch);
          }
  
          return matches;
      }
docs: Executes given regular expression on provided code and returns all
  matches that are found.
  
  @param {String} code    Code to execute regular expression on.
  @param {Object} regex   Regular expression item info from <code>regexList</code> collection.
  @return {Array}         Returns a list of Match objects.