I'm trying to remove strings surrounded by other strings (\[ and \]) in sed. I can match the start string \[ easily, but after that I wan't to match any characters including \ and ] but not if they are in a row (\] end string).Is that possible ? 
Match any characters but not the string ... in sed
sed;regular expression
sed -e 's/\\\[\([^\\]\|\\[^]]\)*\\\]//g'Anatomy of the search pattern:\\\[             starting delimiter    \(      [^\\]      not a backslash           \|    or      \\[^]]     a backslash followed by any char except a right bracket    \)*          repeat as many times as possible\\\]             ending delimiter