java裡面如果通過效率最高取得如下對應time裡面的值和id裡面的
是不是用正則可以達到對應效果
Pattern p = Pattern.compile("正則");
Matcher m = p.matcher(字符串);
while(m.find())
{
System.out.println("1--"+m.group(1)); }
Return(result="success" dev_id="8115916070000165" total="16"
time="2017-04-06 13:12:21" id="1" name="123456" workcode="0" status="0" authority="0X55" card_src="from_check"
time="2017-04-06 13:13:43" id="1" name="123456" workcode="0" status="0" authority="0X55" card_src="from_check"
time="2017-04-06 13:16:09" id="1" name="abc123" workcode="0" status="0" authority="0X55" card_src="from_check"
time="2017-04-06 13:17:24" id="1" name="12345678" workcode="0" status="0" authority="0X55" card_src="from_check"
time="2017-04-06 13:23:50" id="1" name="12345678" workcode="0" status="0" authority="0X55" card_src="from_check"
time="2017-04-06 13:25:05" id="1" name="12345678" workcode="0" status="0" authority="0X55" card_src="from_check"
time="2017-04-06 13:27:33" id="1" name="12345678" workcode="0" status="0" authority="0X55" card_src="from_check"
time="2017-04-06 13:30:13" id="2" name="" workcode="0" status="0" authority="0X55" card_src="from_check"
time="2017-04-06 13:32:39" id="2" name="" workcode="0" status="0" authority="0X55" card_src="from_check"
time="2017-04-06 13:32:47" id="2" name="" workcode="0" status="0" authority="0X55" card_src="from_check"
time="2017-04-06 13:32:49" id="2" name="" workcode="0" status="0" authority="0X55" card_src="from_check"
time="2017-04-08 09:16:41" id="2" name="" workcode="0" status="0" authority="0X55" card_src="from_check"
time="2017-04-08 09:16:42" id="2" name="" workcode="0" status="0" authority="0X55" card_src="from_check"
time="2017-04-08 11:27:41" id="2" name="" workcode="0" status="0" authority="0X55" card_src="from_check"
time="2017-04-08 11:30:04" id="2" name="" workcode="0" status="0" authority="0X55" card_src="from_check"
time="2017-04-08 13:10:55" id="2" name="" workcode="0" status="0" authority="0X55" card_src="from_check"
)