Answers for "how to remove the square brackets from a string in js"

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

Code answers related to "how to remove the square brackets from a string in js"

Code answers related to "Javascript"

Browse Popular Code Answers by Language