求写一个正则表达式匹配要求: 在http://后面的以第一个/前不能出现 .(点)。例如 http://www.baidu.com/index.htm不匹配,http://wwwbaiducom/indies.htm是匹配的应该要使用到断言,但是新手不太会求解[最优解释]
String s="http://www.baidu.com/index.htm";System.out.println(s.matches("http://[^\\.]+/.+"));