problem with sed

Hello
I want to change a string like this:
echo "I don't [not] want that we go [yet] to there" | sed 's/\[.*\]//'
the output now is like this:
I don't to there
but the output must like this:
I don't want that we go to there

I don' find the solution ( I'm a beginner) so maybe someone can help me with this?
thanks you

 
$ echo "I don't [not] want that we go [yet] to there" | sed -e 's/[][]//g' -e 's/yet//'
I don't not want that we go  to there
1 Like

Something like this?

sed 's/ *\[[^]]*\] */ /g'
# echo "I don't [not] want that we go [yet] to there" | sed 's/ [[][a-z]*]//g'
I don't want that we go to there

---------- Post updated at 12:03 PM ---------- Previous update was at 11:57 AM ----------

additional, @Scrutinizer solution's shortened version

echo "I don't [not] want that we go [yet] to there"|sed 's/ \[[^]]*] / /g'
1 Like

Thank you very much for these quickly answers