<?php $my_str = ' Rollo is* My dog* And he\'s very* Lovely* '; preg_match_all('/\S+(?=\*$)/m', $my_str, $end_words); print_r($end_words);
You have javascript disabled. You will not be able to edit any code.