added the deliminator parameter for preg_quote