I have string with value = "[1] a [2] b [3] c" in Javascript. I would like to replace it to "a b c".
My question is how to do it in Javascript by using Regex?
I have tried the following but no luck:
var strText = "[1] a [2] b [3] c";
var strTextReplaced = strText.replace(new RegExp("\[/d\] ", ""), "");