sclass LotteryResult { S date; L numbers; S jackpot; [stdToString] } static LotteryResult scrapeLotteryResults(S html) { LS tok = htmlTok(html); new LotteryResult result; S ball = [[ball--default">(\d+)]]; S jackpot = "(\\$[0-9,]+)"; S regexp = "(?s)" + join(".*?", [[class="c-game-table__game-date"\s+datetime="(\d{4}-\d{2}-\d{2})"]], ball, ball, ball, ball, ball, jackpot); LS l = regexpGroups(regexp, html); result.date = assertNempty("Date", first(l)); result.numbers = map parseInt(dropFirstAndLast(l)); result.jackpot = last(l); ret result; }