Skip to content

Instantly share code, notes, and snippets.

@sysnucleus
Created May 10, 2021 06:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sysnucleus/7e4d940a7f7f7742f20ab8486292346a to your computer and use it in GitHub Desktop.
Save sysnucleus/7e4d940a7f7f7742f20ab8486292346a to your computer and use it in GitHub Desktop.
WebHarvy RegEx strings for selecting BET365 opening/closing odds from FlashScore
Home opening and closing odds
-----------------------------
bet365[\s\S]*?title="([\d\.]+)
bet365[\s\S]*?<span class="\s*"[^>]*>([^<]*)
Draw opening and closing odds
-----------------------------
bet365[\s\S]*?title="[\d\.]+[\s\S]*?title="([\d\.]+)
bet365[\s\S]*?<span class="[\s\S]*?<span class="\s*"[^>]*>([^<]*)
Away opening and closing odds
-----------------------------
bet365[\s\S]*?title="[\d\.]+[\s\S]*?title="[\d\.]+[\s\S]*?title="([\d\.]+)
bet365[\s\S]*?<span class="[\s\S]*?<span class="[\s\S]*?<span class="\s*"[^>]*>([^<]*)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment