I need to remove everything between [ ].
[ ]
Example:
My Input : ab[cd]e
ab[cd]e
Expected Output : abe.
abe
I tried using \[ and \], but it is reported as an illegal escape sequence.
\[
\]
Can anyone please help me with this.
P.S.: I am using Java 1.7.