test
testttttt
testttttt
public static void main(String[] args) throws Exception {
String src = "南京市玄武区北京东路徐州市鼓楼区戏马台";
src = src.replaceAll("(?:江苏省|玄武区|鼓楼区)", "");
System.out.println(src);
}
支持替换逗号等符号。replaceAll("(?:、|,|/)", " OR ");
var storeArray=newArray();
$("input[name='storeid']").each(function(i){var curStoreObj ={};var curStoreId = $(this).val();
curStoreObj.storeId=curStoreId;if(curStoreId){var curStoreMoney = $("#"+curStoreId+"storeMoney").html();
curStoreMoney= curStoreMoney.replace("¥","");
curStoreObj.storeOrderMoney=curStoreMoney;
}
storeArray.push(curStoreObj);
});var storeJinEJson = JSON.stringify(storeArray);//数组转成json
List ll = new ArrayList();
ll.add(new BigDecimal(1));
ll.add(new BigDecimal(4.99));
ll.add(new BigDecimal(5));
System.out.println("最大值: " + Collections.max(ll));
System.out.println("最小值: " + Collections.min(ll));
支持其它数据类型
搜索过去24小时内关于巴拉克·奥巴马(Barack Obama)的内容
例如,搜索过去24小时内关于巴拉克·奥巴马(Barack Obama)的内容:
http://www.google.com/search?q=barack%20obama&hl=en&output=search&tbs=qdr:d&tbo=1
请注意其中的参数“qdr:d”,其中的“qdr”是“Query Date Range”(搜索时间范围)的首字母缩写,因此我们将参数改为“qdr:n”尝试对过去一分钟的内容进行搜索,对过去一秒钟内的内容进行搜索则改为“qdr:s”。即:
过去一分钟的检索结果
过去一分钟:
http://www.google.com/search?q=barack%20obama&hl=en&output=search&tbs=qdr:n&tbo=1
过去一秒钟的检索结果,因时间太短,搜索结果为零
过去一秒钟:
http://www.google.com/search?q=barack%20obama&hl=en&output=search&tbs=qdr:s&tbo=1
过去一秒钟内没有搜索到任何内容。这并不奇怪,因为时间值太小了,只有1秒钟。
此外,还可以对过去一小时内的内容进行搜索:
http://www.google.com/search?q=omgili&hl=en&tbo=1&tbs=qdr:h
或者对过去10分钟的内容进行搜索:
http://www.google.com/search?q=barack%20obama&hl=en&output=search&tbs=qdr:n10&tbo=1
或者对过去30秒的内容进行搜索:
http://www.google.com/search?q=barack%20obama&hl=en&output=search&tbs=qdr:s30&tbo=1
其实,只需在时间参数(h代表小时,n代表分钟,s代表秒)后加入数字即可,例如,“qdr:n10”即可返回过去10分钟内的搜索结果。