<?php $path = 'foo/{display_id}/bar'; var_dump(preg_replace('#\{\w+\}#', '%', $path));
You have javascript disabled. You will not be able to edit any code.