I'm not sure if "token replace" is the right phrase but here is what i'm trying to do:
In a string if I find two or more consecutive white spaces (\s) aka - spaces, new lines, tabs etc. I want to replace whatever it matched with only one instance of itself.
Example:
a b b
would become
a b b
and:
a
b
c
Would become:
a
b
c
Can this be done using .net regex?