preg_replace question

Hi

How can I add special characters öäüõ to the following preg_replace

					$plaintext = preg_replace("/[^a-z0-9 _\\.:;,\\-\\@\\r\
\\/]+/i", "", $response); // Remove special chars

$plaintext = preg_replace(“/[^a-z0-9 _\.:;,\-\@\r
\/]+/i”, “”, $response);
=>
$plaintext = preg_replace(“/[^a-z0-9öäüõ _\.:;,\-\@\r
\/]+/i”, “”, $response);

Thanks I tried that, but it’s still replacing the special letters öäüõ

Odd, works for me… you could try specifying the UTF-8 modifier on the string (/i => /iu)