mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-08 17:48:49 +00:00
fix header parsing
git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@132 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
parent
d9499a3329
commit
65f3957f34
1 changed files with 2 additions and 2 deletions
|
@ -197,9 +197,9 @@ public class SbbProvider implements NetworkProvider
|
|||
}
|
||||
|
||||
private static final Pattern P_CONNECTIONS_HEAD = Pattern.compile(".*?" //
|
||||
+ "Von:.*?<td .*?>(.*?)</td>.*?" // from
|
||||
+ "Von:.*?<td .*?>(?:<a.*?/a>)?(.*?)</td>.*?" // from
|
||||
+ "Datum:.*?<td .*?>.., (\\d{2}\\.\\d{2}\\.\\d{2})</td>.*?" // date
|
||||
+ "Nach:.*?<td .*?>(.*?)</td>.*?" // to
|
||||
+ "Nach:.*?<td .*?>(?:<a.*?/a>)?(.*?)</td>.*?" // to
|
||||
+ "(?:<a href=\"(http://fahrplan.sbb.ch/bin/query.exe/dn[^\"]*?&REQ0HafasScrollDir=2)\".*?)?" // linkEarlier
|
||||
+ "(?:<a href=\"(http://fahrplan.sbb.ch/bin/query.exe/dn[^\"]*?&REQ0HafasScrollDir=1)\".*?)?" // linkLater
|
||||
, Pattern.DOTALL);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue