📌  相关文章
📜  从字符串 javascript 代码示例中删除方括号

📅  最后修改于: 2022-03-11 15:01:53.157000             🧑  作者: Mango

代码示例1
//Use this regular expression to match square brackets or single quotes:
/[\[\]']+/g
//Replace with the empty string.
"['abc','xyz']".replace(/[\[\]']+/g,'')