Hello Sergei,
Thanks for your help. The URLs are not in a file or anything. I use the application A1 Sitemap Generator to generate a sitemap. And it has an option to "Disallow internal links that match regex". So I have no clue what language that is in. It's on Windows Vista, if that helps (I doubt it).
I was thinking I don't need to concern about \b and $, since it just tries to find the regex in the specifig URL. If it is found, the URL is deleted. If not, happy times! The URL is saved.
Unfortunately I don't understand the expression you suggested, besides having read regex tutorials all day long. But I will try to make it! Thanks for your help.