<?php $pattern = "/(.+\/)[^.]+\.([^.]+\.ha)$/"; $s = "/myhome/ishere/where/are.you.ha"; echo preg_replace($pattern, "$1$2", $s);
You have javascript disabled. You will not be able to edit any code.