I am currently using this regex replace statement:
currentLine = Regex.Replace(currentLine, " {1,} \t \n", @" ");
It doesn't seem to be working.
I need a regular expression, that replaces white space(s), new line characters and/or tabs with a single white space.
Are there any other space characters, that I should have in mind ?
For all whitespace use:
\s+
for specific chars you can use:
[ \t\n]+
Other space characters are \r
and \f
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With