As well as component extraction, people can also find it useful to have access
to component replacement - for example, mass-modifying a set of URLs used for API queries
to output JSON rather than XML.replace_parameter
accepts a vector of URLs, the name of a parameter, and a replacement value.
It then loops through the URLs replacing the existing value held by that parameter with the new one.
In the case that a parameter is present multiple times in a URL, only the first instance will be amended.
In the case that a parameter is not present at all, no change to the URL will be made.