function get_last_word($sentance){
$wordArr = explode(' ', $sentance);
$last_word = trim($wordArr[count($wordArr) - 1]);
runDebug( __FILE__, __FUNCTION__, __LINE__, "Sentance: $sentance. Last word:$last_word",4);
return $last_word;
}
i want to remove all text between {} result should be:
function get_last_word($sentance){}
i have tried
{+.*}
and its working only when curly brackets are on same line