Strip duplicates href tags

Hi all

i have a text that contains hyperlinked works. some of them appear more
than once making the text look very saturated with links. how can i
(using regular expressions), strip duplicate a href tags? for reapeated
items, hrefs are identical. i want to keep only the first occurance
hyperlinked. Please let me know how to do this one, thanks in advance.