$text = preg_replace("/
|
/", "", $text);
//Replace the newline and carriage return characters
//using regex and preg_replace.
$text = preg_replace("/
|
/", "", $text);
preg_replace( "/
|
/", "", $yourString );
$str = preg_replace('/(v|s)+/', ' ', $str);