Veröffentlicht am 12. Januar 2011 von stefanRegular Expression: remove double spaces (PHP) echo trim(preg_replace('/\s{2,}/', ' ', $content);