preg_quote instead? http://php.net/manual/en/function.preg-quote.php