How to make a copy-paste program for rapidshare.com links?

I want to make a copy-paste program, that copys all rapidshare.com links from any website i want (so if i add to search box "rapidshare.com" then program copys all the other part of the links - http://rapidshare.com/4532887/example.rar). How hard is it to make? Any tips for making?