remove brackets from string js code example
Example 1: javascript remove parentheses
"Hello, this is Mike (example)".replace(/ *\([^)]*\) */g, "");
Example 2: remove square brackets from string javascript
//Use this regular expression to match square brackets or single quotes:
/[\[\]']+/g
//Replace with the empty string.
"['abc','xyz']".replace(/[\[\]']+/g,'')
Example 3: remove curly brackets from stringify javascript
blah2 = blah2.replace(/[{}]/g, '');