CompactWhitespace
Returns a string with whitespaces compacted.
- Use
Regex.Replace()
with a regular expression to replace all occurences of 2 or more subsequent whitespace characters with a single space.
Returns a string with whitespaces compacted.
Regex.Replace()
with a regular expression to replace all occurences of 2 or more subsequent whitespace characters with a single space.