code: function _gpfRegExpForEach(regexp, string) {
          var matches = [], match = _gpfRegExpGetFirstMatch(regexp, string);
          while (match) {
              matches.push(match);
              match = _gpfRegExpGetNextMatch(regexp, string);
          }
          return matches;
      }
docs: Executes the callback for each match of the regular expression.
  When configured with /g and used before,
  the [lastIndex](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/lastIndex)
  must be first reset
  
  @param {RegExp} regexp Regular expression to execute
  @param {String} string String to match
  @return {Array} Array of matches
  @since 0.2.1
  @version 0.2.2 Reset lastIndex and returns the array of matches