📅  最后修改于: 2022-03-11 15:01:38.552000             🧑  作者: Mango
var text = 'This note is created on [date] by [admin;operator] for [[]]'
var myArray = text.match(/\[([^[]*)\]/g);
console.log(myArray);