Forum Moderators: coopster
is there a way to explode that so that I can just take "HEY ALL"
?
$text = "HEY ALL i have no idea what Im doing."$text = trim(preg_replace("/[^A-Z ]/", "", $text));echo $text;
should show HEY ALL I
[^A-Z ] matches everything that is not a capital letter or a whitespace.