AND Or condition in text with bracket how to divide in javascript code example
Example: AND Or condition in text with bracket how to divide in javascript
var text = 'This note is created on [date] by [admin;operator] for [[]]'
var myArray = text.match(/\[([^[]*)\]/g);
console.log(myArray);