I would like to remove a punctation within a string. The punctuation before space should be preserved. Double punctuation should also not be removed.
Hel-lo World --> Hello World
Hel.lo Wo-rld --> Hello World
approx. age --> approx. age // '.' is before space, that's why is preserved
approx.-age --> approx.-age // .- is a double punctuation; preserved
So far I got this. But it replaces all punctations ... and covers only cases 1 and 2
Regex.Replace("Hel-lo World!", @"[^\w\s]", "");