Pattern pattern=Pattern.compile(正则表达式);
Matcher m=pattern.matcher("http://www.123.com/234/333.html"); //除中文不用外,其他的都要
if(m.find()){
System.out.println(m.find());
System.out.println(m.start());
System.out.println(m.end());
System.out.println(m.group());
}