这个是我自己写的
public static String FriendsInfoRegex = "\"id\":(.*?),(.*?),\"name\":\"(.*?)\",\"head\":\"(.*?)\",\"groups\":\\[(.*?)\\]}";目标数据如下
{"id":296708632,"vip":false,"selected":true,"mo":false,"name":"  \u902f\u9526\u54f2","head":"http:\/\/hdn.xnimg.cn\/photos\/hdn321\/20110405\/2330\/tiny_jI46_60557d019117.jpg","groups":["\u5357\u7406"]},{"id":229246484,"vip":false,"selected":true,"mo":false,"name":"Michael","head":"http:\/\/hdn.xnimg.cn\/photos\/hdn221\/20110209\/1215\/tiny_6FmJ_133359c019116.jpg","groups":[]},{"id":245379208,"vip":false,"selected":true,"mo":true,"name":"\u3005\u674e\u946b\ufe4f\u2665China","head":"http:\/\/hdn.xnimg.cn\/photos\/hdn521\/20100429\/0000\/tiny_WhUA_172928g019116.jpg","groups":["\u666e\u901a\u670b\u53cb"]}]; 我想提取出id,nname,head,group的数据
比较特殊的是group
group的情况主要就两种
第一种,"groups":["\u666e\u901a\u670b\u53cb"]}];
第二种","groups":[]}]; 此时为空
我在J2SE里使用这个正则表达式就没有问题
但是移植到Android下,调试运行就老是说这个正则表达式有问题~请问可能是什么问题啊?

就这么点分数啦~