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"
)
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"
)
...全文
相关推荐
Java使用java.time包中的类来处理时间和时区JavaTimeExample
Java使用java.time包中的类来处理时间和时区,示例代码展示了如何获取当前的瞬时点、系统默认时区的当前时间,以及如何创建指定时区的ZonedDateTime实例。
joda-time-2.9.9
joda-time-2.9.9 的 jar 包下载,下载解压后看使用说明
Android JNI 调用时缓存字段和方法ID示例
主要介绍了Android JNI 调用时缓存字段和方法ID示例,小编觉得挺不错的,现在分享给大家,也给大家做个参考。一起跟随小编过来看看吧
Java批量插入和查询
Java批量插入和查询
Jedis使用总结【pipeline】【分布式的id生成器】【分布式锁【watch】【multi】】【redis分布式】.docx
Jedis使用总结【pipeline】【分布式的id生成器】【分布式锁【watch】【multi】】【redis分布式】.docx


Web 开发
