I am using preg_match function to my program. The code is like this
if (!$this->config_allow_src_above_docroot
&& !preg_match('^'.preg_quote(str_replace(DIRECTORY_SEPARATOR, '/',
realpath($this->config_document_root))), $AbsoluteFilename))
During run the program it shows a warning like this
Warning: preg_match() [function.preg-match]: No ending delimiter '^'
How to solve this?