When I do a str_replace for \n it keeps replacing all the letters "n" in my script. What I am trying to do it replace this "see\nyou\nsoon\n" to say "see you soon". Except it is stripping every n in the sentence. I keep getting this "see you soo".
Is it possible to target, specifically "\n" and not "n"?
Simple question. Perhaps nimrodic. Thanks for your time & solutions.
EDIT > Adding Code > This is the code I am trying to fix
$text = "Description: Join us today, Sunday644 \u2022 Pastor Ed Weiss \u2022 Faith World\nOutreach Church \u2022 Bartlett, IL \u2022 Starting at 11:30am,\nfwo.org\/webcast<http:\/\/www.google.com\/url?q=http:\/\/fwo.org\/webcast&ust=1340553597624000&usg=AFQjCNE5g0jUGFl1nDLmKOHuIG8M8y3Wcg>\n";
preg_match("/Description: ([^\\r\\n]+)/s", $text, $b);
$text = preg_replace("/\u2022/", "•", $text);
$text = preg_replace("/[\n\r]/"," ",$text);
echo $text;
In my testing I am loosing the "r" and "n" letters.