Answers for "javascript remove brackets from string"

2

javascript remove parentheses

"Hello, this is Mike (example)".replace(/ *\([^)]*\) */g, "");
Posted by: Guest on September-01-2020
1

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,'')
Posted by: Guest on January-13-2021
0

remove curly brackets from stringify javascript

blah2 = blah2.replace(/[{}]/g, '');
Posted by: Guest on August-04-2020

Code answers related to "javascript remove brackets from string"

Code answers related to "Javascript"

Browse Popular Code Answers by Language