code: function(src, regex, substr, options, index, actionName) {
      //takes the src content and changes the content
      var regExp = null,
          updatedSrc;
      if (typeof regex ===  'string') {
        regExp = new RegExp(regex , options); //regex => string
      } else {
        regExp = regex; //regex => RegExp object
      }
      updatedSrc = String(src).replace(regExp, substr); //note: substr can be a function
      index = typeof index === 'undefined' ? '' : index;
      if (!actionName) {
        grunt.log.verbose.ok(index + 1 + ' action(s) completed.');
      } else {
        grunt.log.verbose.ok(actionName + ' action completed.');
      }
      return updatedSrc;
    }
docs: ========================================================================== HELPERS ==========================================================================