日期:2014-05-20 浏览次数:21019 次
public static void main (String args[]) {
String str = "http://www.aa.com/php/index.php?number=120&tag=100";
int a = Integer.parseInt(str.replaceAll(".*number=(\\d+).*", "$1"));
System.out.println(a);
}
------解决方案--------------------