<?php $string = 'ﺫﺫ'; var_dump(preg_replace('#(?:^[^\pL]+|[^\pL]+$)#u', '', $string));
You have javascript disabled. You will not be able to edit any code.