code: function(result){
    if(!result) return result;
    result.index = result.index + 2;
    var s = result[0];  
    result[0] = s
      .substr(2,s.length-4) // Skip the first two chars ([[) and omit the last ones (]])
      .replace(/\s+/g, '_'); // Every space will be replaced by an underscore
    return result;
  }
docs: /* Take the string and remove the first and last 2 characters IE [[foo]] returns foo