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

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -