【发布时间】:2013-06-30 13:34:48
【问题描述】:
我有一个类似这样的字符串输入:
[hellothere1241 伙计 omg what][多少 tiasf sgasgag][gas adgh adh sdgsd gsd][ gsdgsdgsdg sd sdgsdgsgsd ga21451t ][t13g1gsd s]
我需要将每个 [ 和 ] 之间的所有字符串都放入这样的数组中:
hellothere1241 fellow omg what
how many tiasf sgasgag
gas adgh adh sdgsd gsd
gsdgsdgsdg sd sdgsdgsgsd ga21451t
t13g1gsd s
谁能给我一个例子? 提前致谢!
【问题讨论】: