I\'m trying this:
str = \"bla [bla]\"; str = str.replace(/\\\\[\\\\]/g,\"\"); console.log(str);
And the replace doesn\'t work, what am I do
Two backslashes produces a single backslash, so you're searching for "a backslash, followed by a character class consisting of a 1 or a right bracket, and then you're missing an closing bracket.
1
right bracket
Try
str.replace(/\[1\]/g, '');