Despite using PHP for years, I\'ve never really learnt how to use expressions to truncate strings properly... which is now biting me in the backside!
Can anyone prov
$str = preg_replace('#().*?()#', '$1$2', $str)