Possible Duplicate:
Unknown modifier in regular expression
Hey guys I'm getting an Unknown Modifier warning (fail) when trying to replace the fourth slash in a sequence with a hashmark using preg_replace, hoping you can help.
$value['path'] = preg_replace("/((.*?)(/)){4}/e", '(preg_replace("//$/", "", "\0"))#', $value['path']);
Error:
Warning: preg_replace() [<a href='function.preg-replace'>function.preg-replace</a>]: Unknown modifier ')'