I have a string coming back from a webservice the contains open brackets like such "[]" so the string would look like something like this:
[1] blabh balh blah
I would like to write a regexp that would remove the "[1]" or anything between open brackets. Right now I've tried something like:
var regexp = /\[[]\\]/g;
but this does not work. I'm stumbling on my own two feet here. I simply just want to find anything that starts with "[" and ends with "]" and replace everything in the middle including the open and closed brackets. Any help or guidance would be much appreciated.