I have a string like this:
string="there is a humble-bee in Hanna's garden";
Now I want to exclude those words that contain "-" and "'". My own solution would be:
StringDelete[string,Cases[StringSplit[string," "], _?(StringContainsQ[#, {"'", "-"}] &)]]
so the outcome is:
"there is a in garden"
But I was wondering whether there is a more elegant solution?