Using regular expressions in C#, is there any way to find and remove duplicate words or symbols in a string containing a variety of words and symbols?
Ex.
This seems to work for me
(\b\S+\b)(?=.*\1)
Matches like so
apple apple orange orange red blue green orange green blue pirates ninjas cowboys ninjas pirates