Advertisement
Guest User

Untitled

a guest
May 26th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. if (line.matches(".*<td rowspan=\"2\">" + "..:.." + "<br>.*</td><td rowspan=\"2\">" + "..:.." + "<br>" + ".*<br>")) {
  2. hourIn = line.substring(line.indexOf("\">") + 2, line.indexOf("<br>"));
  3. cityIn = line.substring(line.indexOf("<br>") + 4, line.indexOf("</td>"));
  4. hourOut = line.substring(line.indexOf("</td><td rowspan=\"2\">") + 21, line.indexOf("</td><td rowspan=\"2\">") + 26);
  5. cityOut = line.substring(line.indexOf(hourOut + "<br>") + 9, line.lastIndexOf("<br>"));
  6. //System.out.println("*" + hourIn + "\n" + cityIn + "\n" + hourOut + "\n" + cityOut);
  7. } else if (line.matches(".*<td>..:..<br>.*</td><td>..:..<br>.*<br>")) {
  8. hourIn = line.substring(line.indexOf("<td>") + 4, line.indexOf("<br>"));
  9. cityIn = line.substring(line.indexOf("<br>") + 4, line.indexOf("</td>"));
  10. hourOut = line.substring(line.indexOf("</td><td>") + 9, line.indexOf("</td><td>") + 14);
  11. cityOut = line.substring(line.indexOf(hourOut + "<br>") + 9, line.lastIndexOf("<br>"));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement