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.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs