issue in parsing html in java -
i want parse html , next tag value after matched pattern. doing searching pattern , find it. want next value printed .
my current code is:
public class match { /** * @param args */ public static void main(string[] args) throws ioexception { system.out.println("nothing display"); string pattern = "planned start<br>date"; pattern regpat = pattern.compile(pattern); matcher matcher = regpat.matcher(""); bufferedreader reader = new bufferedreader(new filereader("c:/users/606787145/desktop/test.htm")); string line; int count=0; while ((line = reader.readline()) != null) { matcher.reset(line); if (matcher.find()) { system.out.println(line); } } }
Comments
Post a Comment