I need to find a certain whitespace with regex. I need to find and replace whitespace or multiple whitespaces only if it s before or after a new line and the other whitespaces should remain.
Now i m using this to remove multiple whitespaces:
preg_replace( /s{2,}/ , , $string);
感谢。