Если вы хотите удалить только последнее предложение, и вы используете php:
$regex = 'We\'ve found that hosting a podcast while running a business is
more useful than you might think — because it allows you to introspect on your
own thoughts and decisions and have a history explaining why you made those
bad decisions at the time. Even if you only have 10 listeners, and one of
them is your dad.';
preg_match_all('/\./',$regex,$match);
$count = count($match[0]);
if($count > 1)
{
$str = explode('.',$regex);
$string = '';
for($i = 0; $i < $count-1; $i++){
$string .= $str[$i] . '.';
}
$change = str_replace ($string, '', $regex);
echo $string . ' whatever ' . $change . ' whatever ';
} else {
echo 'There is only one sentence.';
}
Но, как сказал Фил Уилер, это не очень надежно, т. Е. Если ваше последнее предложение заканчивается на '...'или имеет один'. 'в нем, кроме заключительной «полной остановки», это не будет работать.
То же самое возможно с javascript, jquery или другими