import java.io.*;
import java.util.regex.*;
import java.net.*;
import java.util.*;
class T
{
public static void main(String ddd[])throws Exception
{
URL url=new URL("http://www.baidu.com/s?lm=0&si=&rn=10&ie=gb2312&ct=0&wd=java&pn=100&cl=3");
    InputStream in=(InputStream)url.getContent();
    StringBuffer s=new StringBuffer(16000);
byte[] b=new byte[1024];
while(in.read(b)!=-1)
{
   s.append(new String(b,"gb2312"));
}

Pattern p=Pattern.compile("<a");
Matcher m=p.matcher(s);
System.out.println(m.matches());
}
}百度上肯定有<a> 但是怎么都返回false