code: function filterStringChunks (pattern, unfilteredString, filter) {
        var pattenMatches = unfilteredString.match(pattern);
        var filteredString = unfilteredString.replace(pattern, VALUE_PLACEHOLDER);
  
        if (pattenMatches) {
          var pattenMatchesLength = pattenMatches.length;
          var currentChunk;
  
          for (var i = 0; i < pattenMatchesLength; i++) {
            currentChunk = pattenMatches.shift();
            filteredString = filteredString.replace(
              VALUE_PLACEHOLDER, filter(currentChunk));
          }
        }
  
        return filteredString;
      }
docs: /*!
  Runs a filter operation on all chunks of a string that match a RegExp
  
  @param {RegExp} pattern
  @param {string} unfilteredString
  @param {function(string)} filter
  
  @return {string}