If a known word appears twice in a string or link, I want it removed:
For example, if a link is:
http://www.domain.com/docs/docs/example.htm (with the word "docs" mentioned twice)
I want it to become:
http://www.domain.com/docs/example.htm (with the word "docs" mentioned just once and removing the extra / symbol).
Note that I know the word so no need to discover if ANY word appears twice (easy). The word will always be "docs" or will have "docs" in it somewhere (docs, docs2, docs_one, etc).
I am using Delphi 6. This is URGENT so I am awarding 500 points and my grateful thanks.