you need to call ``preg_quote`` on the pattern to escape special characters (the default pattern contains a dot for instance)