I'm trying to use the java method replaceAll(), that removes from a string all characters that match a given regex, to remove the opening and closing brackets characters from a string.
So, I need to use as a parameter a regex that matches [ and ].
I've tried using [|] or ([|]) but they don't seem to work.