我有一个字符串,其中包含数组和括号,我想从中提取数据。let vr = "- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API."如何动态地识别这个字符串中是否存在一个数组,比如[Next.js Documentation],因为它是一个数组。请在这个问题上帮助我
示例:var test = "One complimentary entrée with the purchase of an entrée./json.js"></script>"One complimentary entr�e with the purchase of an entr�e."但是如果字符串是直接在index.html中定义的,那么这