How can I have a regular expression that tests for spaces or tabs, but not newlines?
I tried \s, but I found out that it tests for newlines too.
How can I have a regular expression that tests for spaces or tabs, but not newlines?
I tried \s, but I found out that it tests for newlines too.
If you want to replace space, the below code worked for me in C#.
Regex.Replace(Line, "\\\s", "");
For Tab
Regex.Replace(Line, "\\\s\\\s", "");