<?php $string = " title-one author-two date-three "; echo preg_replace('/author\-.*$/i', '', $string);
You have javascript disabled. You will not be able to edit any code.