Closed
Description
Hi, Cebe. May all the same you will add the flag u
, as shown PHP Regex: How to match \r and \n without using [\r\n].
Namely:
$text = preg_replace('~\R~u', "\n", $text);
8000
Hi, Cebe. May all the same you will add the flag u
, as shown PHP Regex: How to match \r and \n without using [\r\n].
Namely:
$text = preg_replace('~\R~u', "\n", $text);