怎样使用stringobject.match达到如下效果
aaa\naaaaaaa[red:[aaaaa]]aaaa\na[blue:[aaaa]]a
↓
["aaa","aaaaaaa[red:[aaaaa]]aaaa","a[blue:[aaaa]]a"]
↓
["aaa",["aaaaaaa",["red","aaaaa"],"aaaa"],["a",["blue","aaaa"],"a"]]
aaa\naaaaaaa[red:[aaaaa]]aaaa\na[blue:[aaaa]]a
↓
["aaa","aaaaaaa[red:[aaaaa]]aaaa","a[blue:[aaaa]]a"]
↓
["aaa",["aaaaaaa",["red","aaaaa"],"aaaa"],["a",["blue","aaaa"],"a"]]