In my functions.php I added a function that replaces English with German quotation marks. I do this by simple str_replace calls, like this:
$content = str_replace (' “', ' „', $content);
Now I want to do this with preg_replace instead so I can handle special cases differently. However, this:
$haekchenunten = "“";
$regex = /^ . $haekchenunten . /;
$content = preg_replace ($regex, '„', $content);
Leads to a blank page (PHP Fatal, I'd presume).
How can I use “
with preg_replace?