Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
356 views
in Technique[技术] by (71.8m points)

请教个正则问题,研究一天了没研究出来

"$islandPositions[D][0]"
"$boatPosition[single][A][2]"

想把这样的字符串转化成对象,最后返回一个这样的数组
['islandPositions', 'A, '0']
['boatPosition', 'single', 'A', '2']

希望能有人回答,在线等


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

image.png


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...