X-Git-Url: https://git.sesse.net/?p=ccbs;a=blobdiff_plain;f=parse%2Fparse-ccbs-tournament.pl;fp=parse%2Fparse-ccbs-tournament.pl;h=e5ed36bb2bf27c9484cbd3a026478cf80e245cd6;hp=29aadf99890daa42b42edde5f30a91b66d2ec122;hb=1770190d10dd7008b69253d654c83ea53b5a7b15;hpb=b96dfdd47d90850d85715651e765e14f0f65d560 diff --git a/parse/parse-ccbs-tournament.pl b/parse/parse-ccbs-tournament.pl index 29aadf9..e5ed36b 100644 --- a/parse/parse-ccbs-tournament.pl +++ b/parse/parse-ccbs-tournament.pl @@ -55,7 +55,7 @@ while (<>) { } # Player rankings - if (/^ \s*
  • ( \d+) \. \s* place: \s* ( \S+ ) (?: \s* \( ( [A-Z]+ ) \) )? <\/a> , \s* with \s* ( \d+ ) \s* points/x) { + if (/^ \s*
  • ( \d+) \. \s* place: \s* ( .*? ) (?: \s* \( ( [A-Z]+ ) \) )? <\/a> , \s* with \s* ( \d+ ) \s* points/x) { my ($ranking, $nick, $code, $points) = ($1, $2, $3, $4); # Woot, evil @@ -128,7 +128,7 @@ while (<>) { } # Player's results (header) - if (/^\s* (\S+) (?: \s* \( ( [A-Z]+ ) \) )? <\/a> \s*$/x) { + if (/^\s* (.*?) (?: \s* \( ( [A-Z]+ ) \) )? <\/a> \s*$/x) { $player = $1; printf "INSERT INTO roundparticipation (tournament, round, parallel, player, position) VALUES (\n";