📜  AND或带括号的文本中的条件如何在javascript代码示例中划分

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

代码示例1
var text = 'This note is created on [date] by [admin;operator] for [[]]'
var myArray = text.match(/\[([^[]*)\]/g);
console.log(myArray);