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.
Initial string of words:
"I like the environment. The environment is good."
Desired string:
"I like the environment. is good"
Duplicates removed: "the", "environment", "."
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…