I want to replace all more than 2 white spaces in a string but not new lines, I have this regex: \\s{2,} but it is also matching new lines.
\\s{2,}
How can I ma