1
2
3
4
5
6
7
8
9
10
11
12
13
14
# c. Bowling Stats
p_bowler = re.compile(r"""
    >(?P<name1>.+?) \s* (?:\(c\))? (?:\(k\))? </a>            # Player name (discard the sting that if its a captian (c) or keeper (k))
    \r\n.*?\r\n.*?\r\n
    \s* (?P<overs>\d+)            # bowler overs
    \r\n.*?\r\n.*?\r\n
    .*?
    \r\n.*?\r\n.*?\r\n
    .*?
    \r\n.*?\r\n.*?\r\n
    \s* (?P<runs>\d+?)            # bowler runs given
    \r\n.*?\r\n.*?\r\n
    \s* (?P<wickets>\d+?)\r\n    # bowler wickets taken
""",re.VERBOSE)