<?php $newFullPath = preg_replace("/\/([a-z0-9_\-]+)\/$/", 'first', '/test/rerre/last/'); echo $newFullPath;
You have javascript disabled. You will not be able to edit any code.