I'm trying to match the url `https://youtube.com/embed/id` and its parameters i.e `?start=10&autoplay=1`, but I need the autoplay parameter removed or set to 0.

These are some example urls and what I want the results to look like:

`http://www.youtube.com/embed/JW5meKfy3fY?autoplay=1`

I want to remove the autoplay parameter and its value:

`http://www.youtube.com/embed/JW5meKfy3fY`

2nd example

`http://www.youtube.com/embed/JW5meKfy3fY?start=10&autoplay=1`

results should be

`http://www.youtube.com/embed/JW5meKfy3fY?start=10`

I have tried `(https?:\/\/www.youtube.com\/embed\/[a-zA-Z0-9\\-_]+)(\?[^\t\n\f\r \"']*)(\bautoplay=[01]\b&?)` and replace with `$1$2`, but it matches with a trailing `?` and `&` in example 1 and 2 respectively. Also, it doesn't match at all for a url like
`http://www.youtube.com/embed/JW5meKfy3fY`

I have the regex and examples on [here](https://regex101.com/r/iI1BRO/6)

NB:
The string I am working on contains HTML with one or more youtube urls in it, so I don't think I can easily use go's net/url package to parse the url.