Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (line.matches(".*<td rowspan=\"2\">" + "..:.." + "<br>.*</td><td rowspan=\"2\">" + "..:.." + "<br>" + ".*<br>")) {
- hourIn = line.substring(line.indexOf("\">") + 2, line.indexOf("<br>"));
- cityIn = line.substring(line.indexOf("<br>") + 4, line.indexOf("</td>"));
- hourOut = line.substring(line.indexOf("</td><td rowspan=\"2\">") + 21, line.indexOf("</td><td rowspan=\"2\">") + 26);
- cityOut = line.substring(line.indexOf(hourOut + "<br>") + 9, line.lastIndexOf("<br>"));
- //System.out.println("*" + hourIn + "\n" + cityIn + "\n" + hourOut + "\n" + cityOut);
- } else if (line.matches(".*<td>..:..<br>.*</td><td>..:..<br>.*<br>")) {
- hourIn = line.substring(line.indexOf("<td>") + 4, line.indexOf("<br>"));
- cityIn = line.substring(line.indexOf("<br>") + 4, line.indexOf("</td>"));
- hourOut = line.substring(line.indexOf("</td><td>") + 9, line.indexOf("</td><td>") + 14);
- cityOut = line.substring(line.indexOf(hourOut + "<br>") + 9, line.lastIndexOf("<br>"));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement