@pjackson28, it is required since it is used as the passing function for the .replace. It captures the complete match. While the code in the function does not use it, we need to have a parameter there so that we have access to the second parameter which is what we want ( the grouped parameters ). We could use arguments[1] but this get a bit harder to read I find.