I just go through the **RegEx** answers to the questions by other mates but couldn't find any solution for the problem in my case.
I also read the Regular Expressions references given by some of the helpers here but I was not able to understand properly. 

I am editing my sitemaps of websites. In the sitemap, I have some links in the form:

```
http://foo.com/download/something-after-download-different-for-each-link-12-23-2014.html?id=my5sIUosfiQ&amp;itag=18

```

And I want to change all those links to simply:

```
http://foo.com/download/?id=my5sIUosfiQ&amp;itag=18

```

Here, `?id=` and `itag=` values are different for each link. So, these should not get changed for each link which are already mentioned.

Plus, the part `something-after-download-different-for-each-link-12-23-2014.html` is also different for each link as every file is different to download. So, I want to basically remove the this part from each link. How can I do this?