Last updated 11 months ago
Was this helpful?
matches any Unicode newline sequence; can be modified using verbs
$string = preg_replace('/\R/u', '[,nL]', $string); // Probleme mit Umlauten $string = preg_replace("/\r|\n/s", '[,nL]', $string);
for testing
for testing and visualizing