I am trying to remove brackets []
if there are words in them. For example in the sentence below, I am trying to remove the []
around result
. I tried \[[A-Za-z]
which can pick up the open bracket [
, but I couldn't figure out how to detect the close bracket ]
and how to delete them. Could someone please help? Many thanks.
This should be in the [result].