首页 新闻 会员 周边

括号的正则表达式拆分

0
悬赏园豆:30 [待解决问题]

a[(id=1+2) and (total=2+2 and name="test")] + b[(count=1+2) and (total=2+2 and name="abc")]

请问正则表达式有可能将其拆分成以下的样子吗?

第一层数组

a[(id=1+2) and (total=2+2 and name="test")]

b[(count=1+2) and (total=2+2 and name="abc")]

第二层

a[(id=1+2)

(total=2+2 and name="test")]

...

第三层

total=2+2 

name="test"

...

 

如果不行,就只能按照indexof来处理了

ricky_syh的主页 ricky_syh | 初学一级 | 园豆:0
提问于:2010-11-27 20:04
< >
分享
所有回答(1)
0

可以试下正则的平衡组

鹤冲天 | 园豆:2379 (老鸟四级) | 2010-11-30 21:53
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册